import { PaginationProperties } from "./PlatformResponse"; export interface IPaginationDataSource { getPage(pageNumber: number): Promise; } export type PaginatorPercentageCallback = (percentage: number) => void; export declare class Paginator implements AsyncIterable { private currentPage; private readonly paginationProperties; private readonly dataSource; private readonly progessCallback?; private currentItemIndex; private processedItemCount; constructor(currentPage: T[], paginationProperties: PaginationProperties, dataSource: IPaginationDataSource, progessCallback?: PaginatorPercentageCallback | undefined); private hasNext; private next; private sendProgess; private hasNextPage; private nextPage; collect(): Promise; [Symbol.asyncIterator](): AsyncIterator; get pagePercentage(): number; get totalRecords(): number; } //# sourceMappingURL=Paginator.d.ts.map