import { type RefObject } from "react"; import { type Rect, type Virtualizer } from "@tanstack/react-virtual"; /** * `observeElementRect` for a vertical `useVirtualizer` that reports the scroll element's real * measurement, substituting the caller-provided height when the measurement is zero (jsdom/happy-dom * in tests, `display: none` ancestors). The virtualizer subscribes once per scroll element and * ignores later option changes, so the fallback is read through a ref to stay current. * * @internal */ export declare function useVirtualizerRectObserver(scrollElementRef: RefObject, fallbackHeight: number): (_instance: Virtualizer, cb: (rect: Rect) => void) => (() => void) | undefined; //# sourceMappingURL=useVirtualizerRectObserver.d.ts.map