/** * Sub-pixel tolerance around each edge. Scroll offsets within one pixel of * 0 or the maximum are treated as "at the edge" — browsers occasionally * report fractional offsets due to device-pixel rounding even when the * user perceives the content to be fully scrolled. */ export declare const SCROLL_EDGE_TOLERANCE_PX = 1; /** * Maximum scroll offset available for the given scroll and client sizes. * Guards against negative values — when content is smaller than the * viewport, the max is 0, not a negative number. */ export declare function getMaxScrollOffset(scrollSize: number, clientSize: number): number; /** * Clamps `value` into `[0, max]` and snaps to whichever edge is within * {@link SCROLL_EDGE_TOLERANCE_PX}. When both edges are within tolerance * (i.e. `max <= SCROLL_EDGE_TOLERANCE_PX`) the closer edge wins, with ties * going to the start. */ export declare function normalizeScrollOffset(value: number, max: number): number; //# sourceMappingURL=scroll-edges.d.ts.map