import { ChartSpec } from "../utils/spec.js"; import { DOMConversionMap, DOMExportOutput, DecoratorNode, EditorConfig, LexicalEditor, LexicalNode, LexicalUpdateJSON, NodeKey, SerializedLexicalNode, Spread } from "lexical"; type SerializedChartNode = Spread<{ raw?: string; spec: ChartSpec | null; }, SerializedLexicalNode>; declare class ChartNode extends DecoratorNode { __spec: ChartSpec | null; __raw: string; static getType(): string; static clone(node: ChartNode): ChartNode; static importJSON(serializedNode: SerializedChartNode): ChartNode; static importDOM(): DOMConversionMap | null; constructor(spec?: ChartSpec | null, raw?: string, key?: NodeKey); get spec(): ChartSpec | null; get raw(): string; getSource(): string; setSource(source: string): this; setSpec(spec: ChartSpec): this; exportJSON(): SerializedChartNode; updateFromJSON(serializedNode: LexicalUpdateJSON): this; exportDOM(): DOMExportOutput; createDOM(config: EditorConfig): HTMLElement; getTextContent(): string; isInline(): false; updateDOM(): boolean; decorate(editor: LexicalEditor): unknown; } declare function $createChartNode(spec?: ChartSpec | null, raw?: string): ChartNode; declare function $createChartNodeFromSource(source: string): ChartNode; declare function $isChartNode(node: LexicalNode | null | undefined): node is ChartNode; export { $createChartNode, $createChartNodeFromSource, $isChartNode, ChartNode, SerializedChartNode };