import { BaseSelection, DOMConversionMap, EditorConfig, ElementDOMSlot, ElementNode, LexicalCommand, LexicalEditor, LexicalNode, LexicalUpdateJSON, NodeKey, RangeSelection, SerializedElementNode, Spread } from "lexical"; type LinkAttributes = { rel?: null | string; target?: null | string; title?: null | string; }; type SerializedLinkNode = Spread<{ url: string; }, Spread>; type LinkHTMLElementType = HTMLAnchorElement | HTMLSpanElement; /** @noInheritDoc */ declare class LinkNode extends ElementNode { /** @internal */ __url: string; /** @internal */ __target: null | string; /** @internal */ __rel: null | string; /** @internal */ __title: null | string; static getType(): string; static clone(node: LinkNode): LinkNode; constructor(url?: string, attributes?: LinkAttributes, key?: NodeKey); createDOM(config: EditorConfig, editor: LexicalEditor): LinkHTMLElementType; updateLinkDOM(prevNode: this | null, anchor: LinkHTMLElementType, _config: EditorConfig): void; updateDOM(prevNode: this, anchor: LinkHTMLElementType, config: EditorConfig): boolean; static importDOM(): DOMConversionMap | null; static importJSON(serializedNode: SerializedLinkNode): LinkNode; updateFromJSON(serializedNode: LexicalUpdateJSON): this; sanitizeUrl(url: string, allowedProtocols?: Set): string; exportJSON(): SerializedLinkNode | SerializedAutoLinkNode; getURL(): string; setURL(url: string): this; getTarget(): null | string; setTarget(target: null | string): this; getRel(): null | string; setRel(rel: null | string): this; getTitle(): null | string; setTitle(title: null | string): this; insertNewAfter(_: RangeSelection, restoreSelection?: boolean): null | ElementNode; canInsertTextBefore(): false; canInsertTextAfter(): false; canBeEmpty(): false; isInline(): true; extractWithChild(child: LexicalNode, selection: BaseSelection): boolean; isEmailURI(): boolean; isWebSiteURI(): boolean; getDOMSlot(element: HTMLElement): ElementDOMSlot; } type SerializedAutoLinkNode = Spread<{ isUnlinked: boolean; }, SerializedLinkNode>; export { LinkAttributes, LinkNode, SerializedAutoLinkNode, SerializedLinkNode };