import { TextNode, NodeKey, LexicalNode, EditorConfig, SerializedTextNode, DOMExportOutput, DOMConversionMap } from "lexical"; interface SerializedColoredNode extends SerializedTextNode { color: string; fontSize: string; bold: string; italic: string; alignment: string; fontFamily: string; leadingSpace: string; lineSpacing: string; trailingSpace: string; id: string; type: "colored"; } export declare function $getCaptionNodeById(id: string): ColoredNode | null; export declare class ColoredNode extends TextNode { private __color; private __fontSize; private __bold; private __italic; private __alignment; private __fontFamily; private __leadingSpace; private __lineSpacing; private __trailingSpace; __id: string; constructor(text: string, color: string, fontSize: string, bold: string, italic: string, alignment: string, fontFamily: string, leadingSpace: string, lineSpacing: string, trailingSpace: string, id: string, key?: NodeKey); static getType(): string; getId(): string; setId(text: string): this; static clone(node: ColoredNode): ColoredNode; createDOM(config: EditorConfig): HTMLElement; updateDOM(prevNode: this, dom: HTMLElement, config: EditorConfig): boolean; exportDOM(config: any): DOMExportOutput; static importDOM(): DOMConversionMap | null; exportJSON(): SerializedColoredNode; static importJSON(serializedNode: SerializedColoredNode): ColoredNode; /** * Implement the following API methods to interoperate with Codox * Lexical -> Codox Node * Converts lexical node to json node, acceptable by Codox. */ toCodoxNode(): { type: string; text: string; format: number; mode: import("lexical").TextModeType; detail: number; version: number; style: string; codox_metadata: { type: "colored"; id: string; }; }; /** * Implement the following API methods to interoperate with Codox * Codox -> Lexical Node * Converts synchronized Codox JSON node to Lexical JSON node * Must be class 'static' method */ static fromCodoxNode(codoxNode: any): { type: any; text: any; format: any; mode: any; detail: any; version: any; style: string; id: any; color: string; fontSize: string; bold: string; italic: string; alignment: string; fontFamily: string; leadingSpace: string; lineSpacing: string; trailingSpace: string; }; } export declare function $createColoredNode(text: string, color: string, fontSize: string, bold: string, italic: string, alignment: string, fontFamily: string, leadingSpace: string, lineSpacing: string, trailingSpace: string, id: string): ColoredNode; export declare function $isColoredNode(node: LexicalNode | null | undefined): node is ColoredNode; export {};