import type { RefObject } from 'react'; /** * Clamp a bottom-anchored overlay's max-height to the viewport. * @param ref - the overlay element; a null current (overlay closed) skips measuring. * @param cap - design max-height in px (the clamp never exceeds it). * @param signal - re-measure trigger: pass the overlay's render state so anchor * moves (composer growth) re-fit; resize/scroll re-fit while mounted. * @returns the max-height to apply inline, in px. */ export declare function useAnchoredMaxHeight(ref: RefObject, cap: number, signal: unknown): number; //# sourceMappingURL=useAnchoredMaxHeight.d.ts.map