/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ /// import type { DOMConversionMap, DOMExportOutput, EditorConfig, LexicalEditor, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from 'lexical'; import { DecoratorNode } from 'lexical'; export declare type SerializedExcalidrawNode = Spread<{ data: string; type: 'excalidraw'; version: 1; }, SerializedLexicalNode>; export declare class ExcalidrawNode extends DecoratorNode { __data: string; static getType(): string; static clone(node: ExcalidrawNode): ExcalidrawNode; static importJSON(serializedNode: SerializedExcalidrawNode): ExcalidrawNode; exportJSON(): SerializedExcalidrawNode; constructor(data?: string, key?: NodeKey); createDOM(config: EditorConfig): HTMLElement; updateDOM(): false; static importDOM(): DOMConversionMap | null; exportDOM(editor: LexicalEditor): DOMExportOutput; setData(data: string): void; decorate(editor: LexicalEditor, config: EditorConfig): JSX.Element; } export declare function $createExcalidrawNode(): ExcalidrawNode; export declare function $isExcalidrawNode(node: LexicalNode | null): node is ExcalidrawNode;