interface ElementHeightPx { /** Callback ref: an element that mounts later (a dialog opening) is measured as it appears. */ ref: (element: T | null) => void; /** Height in CSS px, rounded; 0 while nothing is attached. */ heightPx: number; } /** Returns the height to report, or `null` to keep the previous one (e.g. while the element is hidden). */ export type MeasureHeight = (element: T) => number | null; /** * Tracks an element's rendered height with a `ResizeObserver`, so it follows text wrapping, font * size, zoom and content changes as well as viewport resizes. The first measurement is taken * synchronously before paint; later ones are rAF-throttled. `measure` defaults to the border-box height; * pass a stable function (module-level or memoized). */ export declare function useElementHeightPx(measure?: MeasureHeight): ElementHeightPx; export {};