import type { DOMConversionMap, DOMExportOutput, EditorConfig, ElementFormatType, LexicalEditor, LexicalNode, NodeKey, ParagraphNode, RangeSelection, SerializedElementNode, Spread } from 'lexical'; import { ElementNode } from 'lexical'; export declare function setNodeIndentFromDOM(domElement: HTMLElement, node: ElementNode): void; export type SerializedNestedHeadingNode = Spread<{ tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7'; id: string; numberString?: string; }, SerializedElementNode>; export type NestedHeadingTagType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7'; /** @noInheritDoc */ export declare class NestedHeadingNode extends ElementNode { /** @internal */ __tag: NestedHeadingTagType; private __id; __numberString: string; __extraAttributes?: Record; static getType(): string; static clone(node: NestedHeadingNode): NestedHeadingNode; constructor(tag: NestedHeadingTagType, key?: NodeKey, className?: string); getTag(): NestedHeadingTagType; setTag(tag: NestedHeadingTagType): this; getLatestIdFromJSON(): string | null; getId(): string; createDOM(config: EditorConfig): HTMLElement; updateDOM(prevNode: this, dom: HTMLElement, config: EditorConfig): boolean; static importDOM(): DOMConversionMap; exportDOM(editor: LexicalEditor): DOMExportOutput; setId(id: any): this; static importJSON(serializedNode: SerializedNestedHeadingNode): NestedHeadingNode; updateFromJSON(serializedNode: SerializedNestedHeadingNode): this; exportJSON(): SerializedNestedHeadingNode; insertNewAfter(selection?: RangeSelection, restoreSelection?: boolean): ParagraphNode | NestedHeadingNode; collapseAtStart(): true; extractWithChild(): boolean; toCodoxNode(): { children: import("lexical").SerializedLexicalNode[]; direction: "ltr" | "rtl" | null; format: ElementFormatType; indent: number; type: string; version: number; tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "h7"; id: string; numberString: string | undefined; codox_metadata: { type: string; id: string; }; }; static fromCodoxNode(codoxNode: any): { children: any; direction: any; format: any; indent: any; type: string; version: any; tag: any; id: any; numberString: any; }; } export declare function $createNestedHeadingNode(headingTag?: NestedHeadingTagType): NestedHeadingNode; export declare function $isNestedHeadingNode(node: LexicalNode | null | undefined): node is NestedHeadingNode;