@difizen/ai-flow
Version:
Scalable, out-of-the-box, agent-oriented flow
7 lines (6 loc) • 533 B
TypeScript
import type { EntityMatch } from '@lexical/text';
import type { Klass, LexicalEditor, TextNode } from 'lexical';
import type { MenuTextMatch } from './types';
export declare function registerLexicalTextEntity<T extends TextNode>(editor: LexicalEditor, getMatch: (text: string) => null | EntityMatch, targetNode: Klass<T>, createNode: (textNode: TextNode) => T): (() => void)[];
export declare function $splitNodeContainingQuery(match: MenuTextMatch): TextNode | null;
export declare function textToEditorState(text: string): string;