import type { PopupProps } from '@gravity-ui/uikit';
import type { EditorView } from 'prosemirror-view';
import type { ActionStorage } from "../../../core/index.js";
import { type Logger2 } from "../../../logger.js";
import type { ContextConfig } from "./types.js";
export type { ContextGroupItemData, ContextGroupData, ContextConfig } from "./types.js";
export type TooltipViewParams = {
    /** @default 'bottom' */
    placement?: 'top' | 'bottom';
    /** @default false */
    flip?: boolean;
    onPopupOpenChange: PopupProps['onOpenChange'];
};
export declare class TooltipView {
    #private;
    private readonly logger;
    private readonly actions;
    private readonly menuConfig;
    private readonly placement;
    private readonly onPopupOpenChange;
    private view;
    private visible;
    private anchor;
    private _tooltipRenderItem;
    constructor(actions: ActionStorage, menuConfig: ContextConfig, logger: Logger2.ILogger, params: TooltipViewParams);
    get isTooltipOpen(): boolean;
    show(view: EditorView): void;
    hide(view: EditorView): void;
    destroy(): void;
    private readonly handleFocus;
    private readonly handleClick;
    private renderPopup;
    private get tooltipRenderItem();
    private createVirtualElement;
}
