import type { MaybeRef } from './_shared'; import type { Ref } from '@stacksjs/stx'; /** * Infinite scroll detection. * Calls the `onLoadMore` callback when the user scrolls near the edge. */ export declare function useInfiniteScroll(target: MaybeRef, onLoadMore: () => void | Promise, options?: UseInfiniteScrollOptions): { isLoading: Ref }; export declare interface UseInfiniteScrollOptions { distance?: number direction?: 'top' | 'bottom' | 'left' | 'right' }