interface IBEditorLinkToolbarSelection {
    from: number;
    to: number;
}
interface IBEditorLinkToolbarEditor {
    commands: {
        setTextSelection: (selection: IBEditorLinkToolbarSelection) => boolean;
    };
    getAttributes: (name: 'link') => {
        href?: unknown;
    };
    state: {
        selection: IBEditorLinkToolbarSelection;
    };
    view?: {
        dom: HTMLElement;
        posAtDOM: (node: Node, offset: number) => number;
    };
}
export declare function resolveBEditorLinkToolbarSelection(editor: IBEditorLinkToolbarEditor): {
    previousUrl: string;
    selection: IBEditorLinkToolbarSelection;
};
export declare function resolveBEditorAnchorSelection(editor: {
    view: {
        posAtDOM: (node: Node, offset: number) => number;
    };
}, anchor: HTMLAnchorElement): IBEditorLinkToolbarSelection | null;
export {};
