/** The edge of its trigger an anchored card sits against: above or below it, or beside * it at the trigger's leading (`start`) or trailing (`end`) side in the layout direction. */ export type OverlaySide = "above" | "below" | "start" | "end"; /** The two vertical sides a card can be fitted to. */ export type OverlayVerticalSide = "above" | "below"; /** The two sides a card can sit beside its trigger, logical in the layout direction. */ export type OverlayBesideSide = "start" | "end"; /** * Fit an anchored card inside its host's visible vertical band. * * Above or below: the card goes on `currentSide` (the preferred side when it first * opens) while it fits there, flips to the opposite side when that one has more room, * and is capped to the larger band. It never falls back to beside. Beside (`beside` * names the side placeOverlay resolved): the card is top-aligned with its trigger * (centered on it with `centered`) and slid inside the band, and the side reported is * that beside side. */ export declare function fitOverlayHeight({ triggerTop, triggerHeight, outletHeight, visibleTop, visibleBottom, desiredHeight, currentSide, gap, beside, centered, }: { triggerTop: number; triggerHeight: number; outletHeight: number; visibleTop?: number; visibleBottom?: number; desiredHeight: number | null; currentSide?: OverlayVerticalSide; gap: number; beside?: OverlayBesideSide | null; /** Beside the trigger: center the card on the trigger's height instead of its top. */ centered?: boolean; }): { side: OverlaySide; top?: number; bottom?: number; maxHeight: number; }; //# sourceMappingURL=overlay-layout.d.ts.map