import { IHttpClient } from "../http"; import { IPagedDataProvider } from "./IPagedDataProvider"; /** * Handles pagination for queries against API resources. */ export declare class ODataPagedDataProvider implements IPagedDataProvider { protected apiClient: IHttpClient; protected resourceQuery: string; protected skipCountCheck: boolean; expandQuery: string; selectQuery: string; protected filterQuery: string; protected orderQuery: string; protected previousPages: Map; protected currentPage: number; pageSize: number; allItemsCount: number; /** * Initializes new instance of ODataPagedDataProvider. * @param apiClient IHttpClient implementation supporting API calls. * @param resourceQuery Base query to the resource. For example https://graph.microsoft.com/v1.0/users. * @param skipCountCheck As some resources does not support $count or You may not want to do extra call, You can skip the call for items count. Defaults to false. */ constructor(apiClient: IHttpClient, resourceQuery: string, skipCountCheck?: boolean, expandQuery?: string, selectQuery?: string); protected getAllItemsCount(): Promise; getData(): Promise; protected buildInitialQuery(): string; protected callGraphAPI(url: string): Promise; setQuery(value: string): void; getQuery(): string; setOrder(orderBy: string, orderDir: "ASC" | "DESC"): void; getNextPage(): Promise; isNextPageAvailable(): boolean; getPreviousPage(): Promise; isPreviousPageAvailable(): boolean; getCurrentPage(): number; }