import { type RefObject } from 'react'; import { type Placement } from '../../core/position.js'; /** * Shows `floating` in the top layer (Popover API, `popover="manual"`) while `open`, placed beside * `anchor` by core/popup `placePopup` — flipped when there's no room (keeping its side while open), shifted along the * anchor inside the viewport, hidden while the anchor is out of view, start / end mirrored right-to-left, with `size` * the room left as `--ui-available-height` — in document coordinates, so it scrolls with the page; re-placed while open * whenever its anchor moves (core/popup trackAnchor). Writes `data-side` and, with `caret`, `--_caret-start`: where the caret (`--_caret-w` * wide along the edge) starts so it points at the anchor's centre, as the Lit `placeWithCaret`. */ export declare function useFloating(open: boolean, anchorRef: RefObject, floatingRef: RefObject, placement: Placement, options?: { gap?: number; caret?: boolean; nudgeY?: number; matchWidth?: boolean; size?: boolean; }): void;