import { LexicalNode, LexicalCommand, NodeKey } from "lexical"; import { LinkNode } from "@lexical/link"; export interface LinkCustomizationAttributes { url: string; target?: string; classNames?: Array; } export declare class CustomLinkNode extends LinkNode { __url: string; __target: string; __classNames: Array; constructor(url?: string, target?: string, classNames?: Array, key?: NodeKey); static getType(): string; static clone(node: CustomLinkNode): CustomLinkNode; static importJSON(serializedNode: any): CustomLinkNode; static importDOM(): { a: (node: Node) => { conversion: (domNode: HTMLElement) => { node: CustomLinkNode; }; priority: 0 | 1 | 2 | 3 | 4; }; }; createDOM(): HTMLAnchorElement; updateDOM(): boolean; exportDOM(): { element: HTMLAnchorElement; }; exportJSON(): { type: string; url: string; target: string; classNames: string[]; version: number; title?: null | string | undefined; rel?: null | string | undefined; children: import("lexical").SerializedLexicalNode[]; direction: "ltr" | "rtl" | null; format: import("lexical").ElementFormatType; $?: Record | undefined; indent: number; textFormat?: number | undefined; textStyle?: string | undefined; } | { type: string; url: string; target: string; classNames: string[]; version: number; title?: null | string | undefined; rel?: null | string | undefined; children: import("lexical").SerializedLexicalNode[]; direction: "ltr" | "rtl" | null; format: import("lexical").ElementFormatType; $?: Record | undefined; indent: number; textFormat?: number | undefined; textStyle?: string | undefined; isUnlinked: boolean; }; setClassNames(classNames: Array): void; } export declare const TOGGLE_CUSTOM_LINK_NODE_COMMAND: LexicalCommand; export declare function $createCustomLinkNode(url: string, target: string, classNames: Array): CustomLinkNode; export declare function $isCustomLinkNode(node: LexicalNode | null | undefined | any): node is CustomLinkNode; export declare const toggleCustomLinkNode: ({ url, target, classNames, getNodeByKey }: LinkCustomizationAttributes & { getNodeByKey: (key: NodeKey) => HTMLElement | null; }) => void; //# sourceMappingURL=CustomLinkNode.d.ts.map