import { type PopupProps } from '@gravity-ui/uikit'; import type { EditorState } from 'prosemirror-state'; import type { EditorView } from 'prosemirror-view'; import type { ActionStorage } from "../../../core/index.js"; import type { ToolbarButtonPopupData, ToolbarGroupItemData, ToolbarSingleItemData } from "../../../toolbar/index.js"; export type ContextGroupItemData = (ToolbarGroupItemData & { condition?: (state: EditorState) => void; }) | ((ToolbarSingleItemData | ToolbarButtonPopupData) & { condition?: 'enabled'; }); export type ContextGroupData = ContextGroupItemData[]; export type ContextConfig = ContextGroupData[]; export declare class TooltipView { #private; private actions; private menuConfig; private view; private baseProps; private _tooltipRenderItem; constructor(actions: ActionStorage, menuConfig: ContextConfig); get isTooltipOpen(): boolean; show(view: EditorView, popupProps?: PopupProps): void; hide(view: EditorView): void; destroy(): void; private getSelectionTooltipProps; private getFilteredConfig; private renderPopup; private get tooltipRenderItem(); private calcPosition; private get popupTextOffset(); }