/// export interface SelectionValue { text: string; value: any; } export interface AutoCompleteProfile { filter: (option: any, keyword: string) => boolean; matchRegex: RegExp; name: string; options: any[]; render: (options: any) => React.ReactNode; select: (option: any) => SelectionValue; trigger: string; } export interface AutoCompleteSuggestionsProps { profiles: AutoCompleteProfile[]; textSpan: TextSpanResults | null; } export interface MatchOption { lead: string; regex: RegExp; } export interface TextSpanResults { lead: string; range: [number, number]; typedText: string; type: string; } export interface Element { type: string; text: string; value: any; } export interface Data { text: string; textElements: Element[][]; } export declare type OnSendCallback = (data: Data) => void;