type ApiFunc = (request: Record) => Promise>; /** * Token-based automatic pagination. * * Calls `apiFunc` repeatedly, passing `nextToken` from each response, * until there are no more pages. All items found under `itemsKey` * are merged into a single array. * * Termination guarantees (in priority order): * 1. Backend signals end of stream (no nextToken / empty data). * 2. {@link MAX_ITERATIONS} pages fetched (≈ paranoid loop guard). * 3. Wall-clock exceeds {@link MAX_DURATION_MS} (slow-backend escape). */ export declare function paginateAll(apiFunc: ApiFunc, baseRequest: Record, itemsKey: string, pageSize?: number): Promise[]>; export {}; //# sourceMappingURL=pagination.d.ts.map