import { Accessor } from './Accessor'; export declare class InfiniteAccessor extends Accessor { private action; private arg; 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; private notifyModel; /** * Revalidate the all pages. * @returns The all pages if it is not interrupted by the other revalidation, otherwise returns `null. */ revalidate: () => Promise; /** * Fetch the next page. * @returns The all pages if it is not interrupted by the other revalidation, otherwise returns `null`. */ fetchNext: () => Promise; private updateData; /** * 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; /** * Sync the data in `data` from the `start` index to the state, * and notify the listeners which are listening this accessor. */ private flush; private pageSize; }