import type { ScrollOwner } from "./virtualizedGridTypes.ts"; /** * The closest ancestor that owns vertical scrolling. * * The computed value is enough. An `overflow-y:auto` ancestor can * be shorter than its contents only AFTER this grid installs its * virtual spacer, so requiring `scrollHeight > clientHeight` here * would miss the owner on the first commit and create the exact * document scrollbar this lookup prevents. */ export declare const findScrollOwner: (element: HTMLElement) => ScrollOwner; /** * The offset from the scroll owner's content origin to the grid. * * Both formulas stay stable while their owner scrolls: the grid's * viewport-relative top falls by the same amount that `scrollY` or * `scrollTop` rises. The element path subtracts its border because * a scroll offset starts at the padding edge, not at the outer * border returned by `getBoundingClientRect()`. */ export declare const useScrollMargin: (scrollOwner: ScrollOwner) => { gridElement: import("react").RefObject; scrollMargin: number; }; //# sourceMappingURL=virtualizedGridScroll.d.ts.map