import { type RefObject } from "react"; type ScrollState = { y: number; x: number; delta: { y: number; x: number; }; }; type Options = { container?: RefObject; timeout?: number; }; /** * Tracks scroll position and deltas. * * @remarks * This hook listens to scroll events on the window or a specified container. * It debounces the callback to improve performance. * * @param fn - The callback to execute on scroll. * @param options - Configuration options (container, timeout). * * @example * ```tsx * useScrollPosition(({ y, delta }) => { * console.log("Scrolled to", y, "Delta", delta.y); * }, { timeout: 100 }); * ``` */ export declare function useScrollPosition(fn: (s: ScrollState) => void, options?: Options): void; export {};