import type { PageBox } from "./coords"; /** The positioning container's client-px size. Only `width` drives the horizontal clamp; the top edge is * the origin (0), so the flip decision needs no height. `height` is accepted for callers that pass a full * rect but is not required. */ export interface FloatViewport { width: number; height?: number; } /** Toolbar geometry + spacing knobs. `toolbarWidth`/`toolbarHeight` are the measured capsule size (the * component measures its own element and re-feeds them, so centering/clamping is exact). */ export interface FloatOptions { toolbarWidth: number; toolbarHeight: number; /** Gap in client px between the selection edge and the toolbar (default 8). */ gap?: number; /** Minimum inset from the viewport edges (default 6). */ margin?: number; /** Minimum inset of the tail (caret) from the toolbar's left/right edges (default 16). */ caretInset?: number; } export type FloatPlacement = "above" | "below"; export interface FloatPosition { /** Toolbar left in the positioning space (client px). */ x: number; /** Toolbar top in the positioning space (client px). */ y: number; /** `above` = tail points DOWN at the selection; `below` = tail points UP (flipped). */ placement: FloatPlacement; /** Tail x-offset relative to the toolbar's left edge (points at the selection center, clamped inside). */ caretLeft: number; } /** The union bounding box of all mark boxes (page px). Multi-selection anchors the toolbar over the whole * span (issue 028: "다중 선택은 마크들의 union bbox"). Returns null for an empty list. */ export declare function unionPageBox(marks: readonly PageBox[]): PageBox | null; export declare function computeFloatingPosition(marks: readonly PageBox[], scale: number, viewport: FloatViewport, opts: FloatOptions): FloatPosition | null; //# sourceMappingURL=floatingPosition.d.ts.map