import { ProviderFactory } from '@uidu/editor-common';
import React from 'react';
import { IntlShape, WrappedComponentProps } from 'react-intl';
import { RecentSearchInputTypes } from '../../../ui/RecentSearch/types';
export declare const mediaLinkToolbarMessages: {
    backLink: {
        id: string;
        defaultMessage: string;
        description: string;
    };
};
export declare type Props = {
    intl: IntlShape;
    providerFactory: ProviderFactory;
    editing: boolean;
    onBack: (url: string, meta: {
        inputMethod?: RecentSearchInputTypes;
    }) => void;
    onUnlink: () => void;
    onCancel: () => void;
    onBlur: (href: string) => void;
    onSubmit: (href: string, meta: {
        inputMethod: RecentSearchInputTypes;
    }) => void;
    displayUrl?: string;
};
export declare class LinkAddToolbar extends React.PureComponent<Props & WrappedComponentProps> {
    state: {
        validationErrors: any[];
    };
    private handleSubmit;
    private handleOnBack;
    private handleCancel;
    private handleUnlink;
    private handleOnBlur;
    private getValidationErrors;
    private renderContainer;
    render(): React.JSX.Element;
}
export default LinkAddToolbar;
