import { InjectionToken } from '@angular/core'; /** Emoji Rendering Mode */ export declare type EmojiMode = 'auto' | 'native' | 'web'; export interface EmojiConfig { emojiPath?: string; emojiExt?: string; emojiMode?: EmojiMode; } export declare const EmojiConfigToken: InjectionToken; export declare class EmojiUtils { readonly native: boolean; readonly regex: RegExp; private config; private readonly filePath; private readonly fileExt; constructor(native: boolean, regex: RegExp, config: EmojiConfig); private assessPath; private assessExt; /** Returns the most suitable emoji mode based on the request */ emojiMode(mode?: EmojiMode): Exclude; /** Computes the full path to load the image corersponding to the given emoji */ imageFilePath(emoji: string): string; isEmoji(source: string): boolean; matchEmojiCodes(source: string): RegExpExecArray; /** Parses the source text searching for emoji unicode sequences */ parseEmojiCodes(source: string, callbackfn: (match: string, index: number) => void): void; }