1 | type EmojifyFormat = (name: string, part?: string, input?: string) => string;
|
2 | interface EmojifyOptions {
|
3 | fallback?: string | ((part: string) => string);
|
4 | format?: EmojifyFormat;
|
5 | }
|
6 | declare const emojify: (input: string, { fallback, format }?: EmojifyOptions) => string;
|
7 |
|
8 | declare const find: (codeOrName: string) => {
|
9 | emoji: string;
|
10 | key: string;
|
11 | } | undefined;
|
12 |
|
13 | declare const get: (codeOrName: string) => string | undefined;
|
14 |
|
15 | declare const has: (codeOrName: string) => boolean;
|
16 |
|
17 | declare const random: () => {
|
18 | name: string;
|
19 | emoji: string;
|
20 | };
|
21 |
|
22 | interface Emoji {
|
23 | emoji: string;
|
24 | key: string;
|
25 | }
|
26 |
|
27 | type ReplaceReplacement = (emoji: Emoji, index: number, string: string) => string;
|
28 | declare const replace: (input: string, replacement: string | ReplaceReplacement, { preserveSpaces }?: {
|
29 | preserveSpaces?: boolean | undefined;
|
30 | }) => string;
|
31 |
|
32 | declare const search: (keyword: string) => {
|
33 | name: string;
|
34 | emoji: string;
|
35 | }[];
|
36 |
|
37 | interface StripOptions {
|
38 | preserveSpaces?: boolean;
|
39 | }
|
40 | declare const strip: (input: string, { preserveSpaces }?: StripOptions) => string;
|
41 |
|
42 | declare const unemojify: (input: string) => string;
|
43 |
|
44 | interface WhichOptions {
|
45 | markdown?: boolean;
|
46 | }
|
47 | declare const which: (emoji: string, { markdown }?: WhichOptions) => string | undefined;
|
48 |
|
49 | export { EmojifyFormat, EmojifyOptions, ReplaceReplacement, StripOptions, WhichOptions, emojify, find, get, has, random, replace, search, strip, unemojify, which };
|