import type { RevalidateContext } from './BaseAccessor.js'; import { BaseAccessor } from './BaseAccessor.js'; import type { InfiniteAction } from './types.js'; export declare class InfiniteAccessor extends BaseAccessor { protected action: InfiniteAction; private updateState; private data; /** * This property is used to reject ant ongoing fetching. * It may be invoked when there is a revalidation executing, * but the user call the fetching next. */ private rejectFetching; private currentTask; /** * {@inheritDoc BaseAccessor.revalidate} */ revalidate: (context?: RevalidateContext) => Promise>; /** * Fetch the next page. * @returns The all pages if it is not interrupted by the other revalidation, otherwise returns `null`. */ fetchNext: () => Promise>; /** * Fetch a single page with error retry. * @param param0 * @returns */ private fetchPage; /** * Fetch the pages from `pageIndex` to `pageSize` (exclusive). * This function returns the whole data list. */ private fetchPages; private fetch; }