import { type DOMConversionMap, type DOMExportOutput, type EditorConfig, type ElementFormatType, type LexicalEditor, type LexicalNode, type NodeKey, type Spread } from 'lexical'; import { DecoratorBlockNode, SerializedDecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode'; import type { JSX } from 'react'; import { Mode } from './types'; interface Data { docPostId: string; mode: Mode; } export type SerializedSubpageListingNode = Spread<{ type: 'subpage-listing'; data: Data; }, SerializedDecoratorBlockNode>; export declare class SubpageListingNode extends DecoratorBlockNode { __data: Data; static getType(): string; static clone(node: SubpageListingNode): SubpageListingNode; constructor(data: Data, format?: ElementFormatType, key?: NodeKey); exportDOM(): DOMExportOutput; static importDOM(): DOMConversionMap | null; static importJSON(serializedNode: SerializedSubpageListingNode): SubpageListingNode; exportJSON(): SerializedSubpageListingNode; getData(): Data; setData(data: Data): void; decorate(editor: LexicalEditor, config: EditorConfig): JSX.Element; isInline(): false; } export declare function $createSubpageListingNode(data: Data): SubpageListingNode; export declare function $isSubpageListingNode(node: LexicalNode | null | undefined): node is SubpageListingNode; export {};