import type { MaybeRef } from './_shared'; import type { Ref } from '@stacksjs/stx'; /** * Reactive scroll position tracking. * Tracks scroll position, scrolling state, arrived edges, and scroll directions. * * @param target - Scroll target element or window * @param options - Configuration options */ export declare function useScroll(target?: MaybeRef, options?: UseScrollOptions): UseScrollReturn; export declare interface UseScrollOptions { throttle?: number offset?: { top?: number bottom?: number left?: number right?: number } } export declare interface UseScrollReturn { x: Ref y: Ref isScrolling: Ref arrivedState: { top: Ref bottom: Ref left: Ref right: Ref } directions: { top: Ref bottom: Ref left: Ref right: Ref } }