@difizen/ai-flow
Version:
Scalable, out-of-the-box, agent-oriented flow
13 lines (12 loc) • 562 B
TypeScript
import type { EditorConfig, NodeKey, SerializedTextNode } from 'lexical';
import { TextNode } from 'lexical';
export declare class CustomTextNode extends TextNode {
static getType(): string;
static clone(node: CustomTextNode): CustomTextNode;
constructor(text: string, key?: NodeKey);
createDOM(config: EditorConfig): HTMLElement;
static importJSON(serializedNode: SerializedTextNode): TextNode;
exportJSON(): SerializedTextNode;
isSimpleText(): boolean;
}
export declare function $createCustomTextNode(text: string): CustomTextNode;