import type { UseScrollOptions } from '../useScroll'; import type { Awaitable, MaybeGetter } from '../../types'; import { useScroll } from '../useScroll'; export interface UseInfiniteScrollOptions extends UseScrollOptions { /** * The minimum distance between the bottom of the element and the bottom of the viewport * * @default 0 */ distance?: number; /** * The direction in which to listen the scroll. * * @default 'bottom' */ direction?: 'top' | 'bottom' | 'left' | 'right'; /** * The interval time between two load more (to avoid too many invokes). * * @default 100 */ interval?: number; } /** * Reactive infinite scroll. * * @see https://sveltuse.pages.dev/useInfiniteScroll */ export declare function useInfiniteScroll(element: MaybeGetter, onLoadMore: (state: ReturnType) => Awaitable, options?: UseInfiniteScrollOptions): { isLoading: import("svelte/store").Writable; };