import { Pagination } from './types.js';
type ContinueParams<T> = {
    items: T[];
} & Pagination;
export declare const iteratePages: <T>(fetchPage: (pagination: Pagination) => Promise<readonly T[] | T[]>, pagination?: Pagination, getNextOffset?: (params: ContinueParams<T>) => bigint | undefined) => Promise<T[]>;
export declare const byTotalCount: (totalCount: bigint) => ({ offset, limit }: Pagination) => bigint | undefined;
export declare const onePage: () => undefined;
export {};
//# sourceMappingURL=iterate-pages.d.ts.map