export type InfiniteScrollDirection = 'forward' | 'backward'; export type InfiniteScrollCallbacks = { onLoadMore?: (direction: InfiniteScrollDirection) => Promise; hasNextPage?: boolean; hasPreviousPage?: boolean; }; export type InfiniteScrollError = { direction: InfiniteScrollDirection; error: Error; }; export type UseInfiniteScrollOptions = { enabled?: boolean; threshold?: number; }; export type UseInfiniteScrollReturn = { isLoading: boolean; error: InfiniteScrollError | null; handleScroll: (event: React.UIEvent) => void; retryLoad: () => void; clearError: () => void; }; export declare const useInfiniteScroll: (callbacks: InfiniteScrollCallbacks, options?: UseInfiniteScrollOptions) => UseInfiniteScrollReturn;