/** * Canonical pagination helpers for identity-store style AWS list APIs. * Shared by the Identity Centre snapshot (deploy-core) and the CLI * identity-store lister — the page size and page budget are coupled * values that must move together, so both consumers import from here. */ export declare const DEFAULT_MAX_PAGES = 20; /** MaxResults sent on every identity-store list call (~1000 items under the default page budget). */ export declare const IDENTITY_STORE_PAGE_SIZE = 50; export interface PagedResult { items: T[]; /** True when the abort signal fired or the page budget ran out. */ truncated: boolean; } export interface DrainPagesOptions { abortSignal?: AbortSignal; /** Page budget per listing call. Default {@link DEFAULT_MAX_PAGES}. */ maxPages?: number; } /** * Drain a paginated listing under a page budget with a per-page abort * pre-check. Truncation (budget exhausted or abort) is reported, never * silent. */ export declare function drainPages(fetchPage: (nextToken: string | undefined) => Promise<{ items: T[]; nextToken: string | undefined; }>, options?: DrainPagesOptions): Promise>;