//#region src/emojiData.d.ts declare const emojiData: Readonly>; //#endregion //#region src/types.d.ts /** Maps a Slack ID to the display name it should be rendered as. */ type NameMap = Record; /** * Maps a custom emoji shortname to either an image URL or an * `alias:other_shortname` pointer, matching the shape returned by Slack's * `emoji.list` API. */ type CustomEmojiMap = Record; /** The CSS classes applied to each rendered element. */ interface ClassNames { code: string; bold: string; italics: string; strikethrough: string; block: string; emoji: string; userMention: string; date: string; } declare const defaultClassNames: ClassNames; interface SlackEscapeOptions { /** From `users.list`, keyed by user ID: `{ U123: 'david' }`. */ users?: NameMap; /** From `conversations.list`, keyed by channel ID: `{ C123: 'general' }`. */ channels?: NameMap; /** From `usergroups.list`, keyed by subteam ID: `{ S123: 'eng' }`. */ usergroups?: NameMap; /** From `emoji.list`, keyed by shortname: `{ facepalm: 'https://...png' }`. */ customEmoji?: CustomEmojiMap; /** Render Slack's `mrkdwn` (bold, italics, code, quotes). Defaults to `false`. */ markdown?: boolean; /** * Encode `&`, `<` and `>` in the message body so raw HTML cannot reach the * output. Existing entities are preserved, so text that Slack already encoded * is unaffected. Defaults to `true`. * * Turning this off does not disable escaping of interpolated values such as * link URLs, labels and display names, which is always applied. */ escapeHtml?: boolean; /** Overrides for the CSS classes applied to rendered elements. */ classNames?: Partial; /** * IANA timezone used to render `` sequences. Defaults to `'UTC'`, * since a server-side renderer cannot know the reader's timezone. */ dateTimeZone?: string; } //#endregion //#region src/emoji.d.ts interface ExpandEmojiOptions { customEmoji?: CustomEmojiMap; classNames?: Partial; } /** * Replaces `:shortname:` with an image tag or the matching Unicode characters. * An unknown shortname is left exactly as it was written (issue #4). */ declare const expandEmoji: (text: string, options?: ExpandEmojiOptions) => string; //#endregion export { NameMap as a, emojiData as c, CustomEmojiMap as i, expandEmoji as n, SlackEscapeOptions as o, ClassNames as r, defaultClassNames as s, ExpandEmojiOptions as t }; //# sourceMappingURL=emoji-C1m5QCkm.d.cts.map