export declare const unescapeHTML: (text: string) => string;
export declare const escapeHTML: (text: string) => string;
export interface AsciiSmileyConversion {
/** The original ASCII smiley as it appeared in the input (e.g. ":-)"). */
original: string;
/** The resulting Unicode emoji (e.g. "🙂"). */
emoji: string;
}
export interface ConvertEmojisToUnicodeOptions {
/** * Optional callback invoked for every ASCII smiley that was successfully * converted to its Unicode emoji counterpart. Conversions are reported in * the order they were processed. Used by the `EmojiInput` component to * enable the "Backspace reverts the last auto-converted smiley" UX. */
onAsciiConversion?: (conversion: AsciiSmileyConversion) => void;
}
export declare const convertEmojisToUnicode: (text: string, regShortnames: RegExp, shortNameList: {
[p: string]: string;
}, options?: ConvertEmojisToUnicodeOptions) => string;
export declare const addSkinToneToEmoji: (emojiList: {
[x: string]: {
skin_tone_support: any;
};
}, emoji: string, skinTone: string) => string;