import { EditorConfig, SerializedTextNode, TextFormatType, TextNode } from 'lexical'; declare class SpanNode extends TextNode { private format; private applyFormat; createDOM(config: EditorConfig): HTMLElement; exportJSON(): SerializedTextNode; setFormat(format: number | TextFormatType): this; updateDOM(prevNode: SpanNode, dom: HTMLElement, config: EditorConfig): boolean; static clone(node: SpanNode): SpanNode; static getType(): string; static importJSON(node: SerializedTextNode): SpanNode; } export default SpanNode;