数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
930 B

interface UnicodeFormattingOptions {
prefix: string;
separator: string;
case: 'upper' | 'lower';
format: 'utf-32' | 'utf-16';
add0: boolean;
throwOnError: boolean;
}
/**
* Convert unicode number to string
*
* Example:
* 0x1F600 => '1F600'
*/
declare function getEmojiUnicodeString(code: number, options?: Partial<UnicodeFormattingOptions>): string;
/**
* Convert unicode numbers sequence to string
*
* Example:
* [0x1f441, 0xfe0f] => '1f441-fe0f'
*/
declare function getEmojiSequenceString(sequence: number[], options?: Partial<UnicodeFormattingOptions>): string;
/**
* Convert unicode numbers sequence to string
*
* Simple version of `getEmojiSequenceString()` without options that otherwise add to bundle
*/
declare function getEmojiSequenceKeyword(sequence: number[]): string;
export { UnicodeFormattingOptions, getEmojiSequenceKeyword, getEmojiSequenceString, getEmojiUnicodeString };