import { IHttpClient } from "../http"; import { IPagedDataProvider } from "./IPagedDataProvider"; /** * Handles pagination for queries against MS Graph API resources. */ export declare class GraphODataPagedDataProvider implements IPagedDataProvider { protected graphClient: IHttpClient; protected resourceQuery: string; protected skipCountCheck: boolean; protected filterQuery: string; protected orderQuery: string; protected nextPageLink: string; protected previousPages: string[]; protected previousPageIndex: number; pageSize: number; allItemsCount: number; /** * Initializes new instance of GraphODataPagedDataProvider. * @param graphClient IHttpClient implementation supporting Graph 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(graphClient: IHttpClient, resourceQuery: string, skipCountCheck?: boolean); 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; }