import { DOMExportOutput, ElementFormatType, LexicalNode, NodeKey, Spread } from 'lexical'; import { DecoratorBlockNode, SerializedDecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode.js'; export type EmbedNodePayload = { html: string; }; type SerializedEmbedNode = Spread<{ type: 'embed'; version: 1; } & EmbedNodePayload, SerializedDecoratorBlockNode>; export declare class EmbedNode extends DecoratorBlockNode { __html: string; static getType(): string; static clone(node: EmbedNode): EmbedNode; constructor(html: string, format?: ElementFormatType, key?: NodeKey); createDOM(): HTMLElement; updateDOM(): false; decorate(): JSX.Element; static importJSON(serializedNode: SerializedEmbedNode): EmbedNode; static importDOM(): { div: (div: HTMLDivElement) => { conversion: () => { node: EmbedNode; }; }; }; exportJSON(): SerializedEmbedNode; exportDOM(): DOMExportOutput; } export declare function $createEmbedNode({ html }: EmbedNodePayload): EmbedNode; export declare function $isEmbedNode(node: LexicalNode | null | undefined): node is EmbedNode; export {};