import { ProviderFactory } from '@uidu/editor-common';
import { EditorState } from 'prosemirror-state';
import { IntlShape } from 'react-intl';
import { Command } from '../../../types';
import { FloatingToolbarConfig, FloatingToolbarItem } from '../../floating-toolbar/types';
import { MediaLinkingState } from '../pm-plugins/linking';
import { MediaToolbarBaseConfig } from '../types';
export declare function shouldShowMediaLinkToolbar(editorState: EditorState): boolean;
export declare const buildLinkingButtons: (state: EditorState, intl: IntlShape) => Array<FloatingToolbarItem<Command>>;
export declare const getLinkingToolbar: (toolbarBaseConfig: MediaToolbarBaseConfig, mediaLinkingState: MediaLinkingState, state: EditorState, intl: IntlShape, providerFactory?: ProviderFactory) => FloatingToolbarConfig | undefined;
