import { DOMConversionMap, DOMExportOutput, EditorConfig, ElementNode, LexicalEditor, LexicalNode, ParagraphNode, RangeSelection, SerializedElementNode } from 'lexical';
export type SerializedCommentNode = SerializedElementNode;
export declare class CommentNode extends ElementNode {
    static getType(): string;
    static clone(node: CommentNode): CommentNode;
    createDOM(config: EditorConfig): HTMLElement;
    updateDOM(): boolean;
    static importDOM(): DOMConversionMap | null;
    exportDOM(editor: LexicalEditor): DOMExportOutput;
    static importJSON(serializedNode: SerializedCommentNode): CommentNode;
    exportJSON(): SerializedElementNode;
    getTextContent(): string;
    insertNewAfter(_: RangeSelection, restoreSelection?: boolean): ParagraphNode;
    collapseAtStart(): true;
}
export declare function $createCommentNode(): CommentNode;
export declare function $isCommentNode(node: LexicalNode | null | undefined): node is CommentNode;
