interface UseInfiniteScrollOptions { /** Callback to trigger when user scrolls near the end */ onLoadMore: () => void; /** Whether more data is available to load */ hasMore: boolean; /** Whether data is currently loading */ isLoading: boolean; /** Distance from bottom (in pixels) to trigger load. Default: 500 */ threshold?: number; /** Minimum time (in milliseconds) between triggers to prevent multiple calls. Default: 500 */ debounceMs?: number; } /** * Hook to implement infinite scroll functionality * Triggers onLoadMore callback when user scrolls near the bottom of the page * @param options - Configuration options for infinite scroll * @param options.onLoadMore - Callback to trigger when user scrolls near the end * @param options.hasMore - Whether more data is available to load * @param options.isLoading - Whether data is currently loading * @param options.threshold - Distance from bottom (in pixels) to trigger load. Default: 500 * @param options.debounceMs - Minimum time (in milliseconds) between triggers to prevent multiple calls. Default: 500 */ declare const useInfiniteScroll: ({ onLoadMore, hasMore, isLoading, threshold, debounceMs, }: UseInfiniteScrollOptions) => void; export { useInfiniteScroll }; export type { UseInfiniteScrollOptions };