/** * Index of the offset nearest to a scroll position. * * Used to derive the "current" slide from the gallery's real scroll offset * rather than from whichever item last crossed an IntersectionObserver * threshold — which, when several items are visible at once, is * direction-dependent and causes the focused index to drift. * * Ties resolve to the lower index. Returns 0 for an empty list. */ export declare const nearestIndex: (offsets: number[], scrollStart: number) => number; /** * Whether a horizontal scroll container sits at its start / end edge, computed * from real scroll geometry. * * Index-based edge detection is wrong when several items are visible at once: * at the true end the left-most (focused) item is not the last item, so a * `focusedIndex === itemCount - 1` check never becomes true and a "next" * control never disables on its own. */ export declare const scrollEdges: (scrollLeft: number, scrollWidth: number, clientWidth: number, tolerance?: number) => { atStart: boolean; atEnd: boolean; }; //# sourceMappingURL=geometry.d.ts.map