import { BlockElement, Editor, CommandItemData } from "../interface"; import '../static/css/linkInput.css'; declare type OnOK = (text: string | null, link: string) => void; export declare function showLinkDialog(editor: Editor, options: { initUrl: string; hideText: boolean; allowCollapsed: boolean; targetBlock?: BlockElement | undefined; onOK: OnOK; onHidden: () => void; }): void; export declare function showInsertFullLinkDialog(editor: Editor, onOK: (name: string, url: string) => Promise, targetBlock?: BlockElement | undefined): void; export declare function showInsertLinkDialog(editor: Editor): void; export declare function showEditLinkDialog(editor: Editor, block: BlockElement, link: string): void; export declare function getLinkInfo(node: Node): { text: string; link: string; offset: number; length: number; }; export declare function setLinkInfo(editor: Editor, node: Node, info: { text?: string; link?: string; }): void; export declare function handleEditLink(event: Event, itemData: CommandItemData): boolean; export declare function handleUnLink(event: Event, itemData: CommandItemData): boolean; export declare function getTextToolbarOptions(block: BlockElement, target: HTMLAnchorElement): CommandItemData[] | null; export declare function isLinkLike(text: string): boolean; export declare function findLinkInText(testText: string): { start: number; link: string; } | null; export declare function replaceTextToLink(editor: Editor, block: BlockElement, offset: number, count: number): Promise; export declare function insertLink(editor: Editor, block: BlockElement, offset: number, url: string, text?: string): Promise; export {};