import { OnChanges, SimpleChanges } from '@angular/core'; import { EmojiUtils } from '@wizdm/emoji/utils'; import { EmojiMode } from '@wizdm/emoji/utils'; export interface emSegment { type: 'text' | 'emoji'; content: string; } export declare class EmojiText implements OnChanges { readonly utils: EmojiUtils; protected _value: string; readonly segments: emSegment[]; constructor(utils: EmojiUtils); /** Plain text source input */ set value(value: string); get value(): string; /** Mode flag: * 'web' renders emoji as images * 'native' renders the text as it is relying on the OS native support * 'auto' detects the availability of native support and chooses accordingly */ mode: EmojiMode; /** Behavior flag either returning 'web' or 'native' depending on the current behavior */ get behavior(): Exclude; ngOnChanges(changes: SimpleChanges): void; trackByFn(index: number, item: emSegment): string; /** Compiles the source text into an array of eather text or emoji segments */ protected compile(source: string): number; }