import { MediaClientConfig } from '@uidu/media-core';
import { EditorView } from 'prosemirror-view';
import React from 'react';
import { IntlShape } from 'react-intl';
import { MediaPluginState } from '../pm-plugins/types';
export declare const messages: {
    annotate: {
        id: string;
        defaultMessage: string;
        description: string;
    };
};
declare type AnnotationToolbarProps = {
    viewMediaClientConfig: MediaClientConfig;
    id: string;
    collection?: string;
    intl: IntlShape;
    view?: EditorView;
};
export declare class AnnotationToolbar extends React.Component<AnnotationToolbarProps> {
    state: {
        isImage: boolean;
    };
    componentDidMount(): Promise<void>;
    checkIsImage(): Promise<void>;
    componentDidUpdate(prevProps: AnnotationToolbarProps): void;
    onClickAnnotation: () => void;
    render(): React.JSX.Element;
}
export declare const renderAnnotationButton: (pluginState: MediaPluginState, intl: IntlShape) => (view?: EditorView, idx?: number) => React.JSX.Element;
export {};
