import { CardLikeElementNode } from "../../common/node/cursor.js"; import { DOMExportOutput, EditorConfig, ElementDOMSlot, LexicalEditor, LexicalUpdateJSON, SerializedElementNode, Spread } from "lexical"; type DiffType = 'add' | 'remove' | 'modify' | 'unchanged' | 'listItemModify' | 'listItemRemove' | 'listItemAdd'; type SerializedDiffNode = Spread<{ diffType: DiffType; }, SerializedElementNode>; /** DiffNode - contains the original and modified sides, optionally grouped into multiple blocks. */ declare class DiffNode extends CardLikeElementNode { static getType(): string; static clone(node: DiffNode): DiffNode; static importJSON(serializedNode: SerializedDiffNode): DiffNode; static importDOM(): null; private __diffType; constructor(type: DiffType, key?: string); get diffType(): DiffType; setDiffType(type: DiffType): this; updateFromJSON(serializedNode: LexicalUpdateJSON): this; exportJSON(): SerializedDiffNode; exportDOM(editor: LexicalEditor): DOMExportOutput; createDOM(config: EditorConfig, editor: LexicalEditor): HTMLDivElement; updateDOM(_prevNode: unknown, _dom: HTMLElement, _config: EditorConfig): boolean; getDOMSlot(element: HTMLElement): ElementDOMSlot; isInline(): boolean; isCardLike(): boolean; } export { DiffNode, DiffType, SerializedDiffNode };