import { Placement } from "@floating-ui/dom"; export type Side = "top" | "right" | "bottom" | "left"; export type Align = "start" | "center" | "end"; export interface AnchorOptions { side?: Side; align?: Align; sideOffset?: number; alignOffset?: number; /** Element rendered as the popup arrow; positioned automatically. */ arrowEl?: HTMLElement | null; /** Match the popup width to the anchor width (used by select/combobox). */ matchWidth?: boolean; } export declare function toPlacement(side?: Side, align?: Align): Placement; /** * Anchor a floating element to a reference element. Returns a cleanup * function that stops auto-updating. The floating element must be * `position: fixed` (the default applied here). */ export declare function anchor(reference: HTMLElement, floating: HTMLElement, options?: AnchorOptions): () => void;