| 12345678910111213141516 |
- import { EmojiRegexMatch } from './find.mjs';
- /**
- * Callback for replacing emoji in text
- *
- * Returns text to replace emoji with, undefined to skip replacement
- */
- type FindAndReplaceEmojisInTextCallback = (match: EmojiRegexMatch, prev: string) => string | undefined;
- /**
- * Find and replace emojis in text
- *
- * Returns null if nothing was replaced
- */
- declare function findAndReplaceEmojisInText(regexp: string | RegExp | (string | RegExp)[], content: string, callback: FindAndReplaceEmojisInTextCallback): string | null;
- export { type FindAndReplaceEmojisInTextCallback, findAndReplaceEmojisInText };
|