import type { EditorView } from '@atlaskit/editor-prosemirror/view';
import type { PopupPosition as Position } from '../ui';
export declare const calculateToolbarPositionAboveSelection: (toolbarTitle: string) => (editorView: EditorView, nextPos: Position) => Position;
export declare const calculateToolbarPositionTrackHeadOld: (toolbarTitle: string) => (editorView: EditorView, nextPos: Position) => Position;
/**
 * Same logic as calculateToolbarPositionTrackHeadOld, but with the following changes:
 * - Uses a cached container to avoid repeated DOM traversal and getComputedStyle calls
 * - Works when editor is nested within a fixed positioned parent, such as within a modal or sidebar
 */
export declare const calculateToolbarPositionTrackHeadNew: (toolbarTitle: string) => (editorView: EditorView, nextPos: Position) => Position;
export declare const calculateToolbarPositionTrackHead: (toolbarTitle: string) => (editorView: EditorView, nextPos: Position) => Position;
export type CoordsAtPos = {
    bottom: number;
    left: number;
    right: number;
    top: number;
};
export declare const calculateToolbarPositionOnCellSelection: (toolbarTitle: string) => (editorView: EditorView, nextPos: Position) => Position;
