import { ListItem, ListSeparator, TriggerCharacter, TextEditor, CustomElementDefinition } from '@limetech/lime-elements';
export type TriggerMap = {
    [K in TriggerCharacter]?: TriggerHandler;
};
export interface TriggerHandler {
    searcher: (query: string) => Promise<Array<ListItem | ListSeparator>>;
    inserter: (triggerFunction: TextEditor, item: ListItem) => Promise<void>;
    emptySearchMessage?: string;
    noItemsFoundMessage?: string;
    nodeDefinition?: EditorNodeDefinition;
}
export interface EditorNodeDefinition {
    customElement: CustomElementDefinition;
    mapAttributes: (item: ListItem) => {
        [key: string]: any;
    };
}
//# sourceMappingURL=text-editor.types.d.ts.map