///
import type { Data, InfiniteScrollOptions, Service } from './types';
declare const useInfiniteScroll: (service: Service, options?: InfiniteScrollOptions) => {
data: TData | undefined;
loading: boolean;
error: Error | undefined;
loadingMore: boolean;
noMore: boolean;
loadMore: () => void;
loadMoreAsync: () => Promise;
reload: () => void;
reloadAsync: () => Promise;
mutate: import("react").Dispatch>;
cancel: () => void;
};
export default useInfiniteScroll;