| 123456789101112131415161718192021222324252627282930 |
- 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 { type UnicodeFormattingOptions, getEmojiSequenceKeyword, getEmojiSequenceString, getEmojiUnicodeString };
|