import { FetchAllPaginatedOptions } from '../types/api/FetchAllPaginatedOptions'; /** * Fetches every page of a Staffbase `{ data, total }` collection endpoint. * * Termination is driven by page contents (a short page ends the loop) rather * than the API's reported `total`, which avoids under-fetching when `total` is * under-reported. A `maxPages` cap bounds worst-case latency/memory; reaching it * invokes `onError` so the truncation is never silent. * @template TItem The mapped item type returned to the caller. * @template TSource The raw item type returned by the API before mapping. * @param {string} baseUrl - The base API URL (without limit/offset parameters). * @param {FetchAllPaginatedOptions} [options] - Mapping and pagination options. * @returns {Promise} All fetched (and optionally mapped) items. */ export declare const fetchAllPaginated: (baseUrl: string, options?: FetchAllPaginatedOptions) => Promise; //# sourceMappingURL=fetchAllPaginated.d.ts.map