///
import { GroupedData } from '../data-view.types';
interface UseStickyGroupAnchorParams {
enabled: boolean;
groupHeaderList: {
index: number;
start: number;
data: GroupedData;
}[];
scrollContainerRef: React.RefObject;
}
interface UseStickyGroupAnchorResult {
stickyGroup: GroupedData | null;
stickyGroupIndex: number | null;
recompute: () => void;
}
/**
* Tracks the active group for a virtualized sticky group anchor. Picks the
* latest group whose `start` offset has been scrolled past so the anchor's
* content stays in sync with the natural section header underneath.
*
* The consumer hides the natural row at `stickyGroupIndex` so it doesn't slide
* past the anchor.
*/
export declare function useStickyGroupAnchor({ enabled, groupHeaderList, scrollContainerRef }: UseStickyGroupAnchorParams): UseStickyGroupAnchorResult;
export {};
//# sourceMappingURL=useStickyGroupAnchor.d.ts.map