import { type PopupPlacement, type PopupProps } from '@gravity-ui/uikit';
import type { ActionStorage } from "../../../core/index.js";
import type { EditorView } from "../../../pm/view.js";
import { type ToolbarProps } from "../../../toolbar/index.js";
import type { ContextConfig } from "./types.js";
export type TextSelectionTooltipProps = Pick<ToolbarProps<ActionStorage>, 'onClick' | 'editor' | 'focus'> & {
    config: ContextConfig;
    editorView: EditorView;
    popupPlacement: PopupPlacement;
    popupAnchor: PopupProps['anchorElement'];
    popupOnOpenChange: PopupProps['onOpenChange'];
};
export declare const TextSelectionTooltip: React.FC<TextSelectionTooltipProps>;
