import { ProviderFactory } from '@uidu/editor-common';
import { Node } from 'prosemirror-model';
import { EditorView } from 'prosemirror-view';
import * as React from 'react';
import { Command } from '../../../types';
import { FloatingToolbarConfig, FloatingToolbarItem } from '../../floating-toolbar/types';
export declare type EditLinkToolbarProps = {
    view: EditorView;
    providerFactory: ProviderFactory;
    url: string | undefined;
    text: string;
    node: Node;
    onSubmit?: (href: string, text: string) => void;
};
export declare class EditLinkToolbar extends React.Component<EditLinkToolbarProps> {
    componentDidUpdate(prevProps: EditLinkToolbarProps): void;
    componentWillUnmount(): void;
    private hideLinkToolbar;
    render(): JSX.Element;
}
export declare const editLink: Command;
export declare const buildEditLinkToolbar: ({ providerFactory, node, }: {
    providerFactory: ProviderFactory;
    node: Node;
}) => FloatingToolbarItem<Command>;
export declare const editLinkToolbarConfig: Partial<FloatingToolbarConfig>;
