import { pLimit } from "./pLimit.js"; //#region src/utils/parallelizeGlobal.d.ts /** Get (and optionally configure) the single, shared limiter. */ export declare const getGlobalLimiter: (concurrency?: number) => (fn: (...args: any[]) => Promise, ...arguments_: any[]) => Promise; /** Limits how many *tasks* run concurrently (independent from AI calls). */ export declare const getTaskLimiter: (concurrency?: number) => (fn: (...args: any[]) => Promise, ...arguments_: any[]) => Promise; export declare const parallelizeGlobal: (items: T[], callback?: (item: T, index: number) => Promise, options?: { /** Share a single limiter across the app. If omitted, uses global limiter. */ limiter?: ReturnType; /** If provided and no limiter is passed, configure the global limiter. */ concurrency?: number; /** * Whether to wrap *each* callback run in the limiter. * - For orchestration (outer loops): set `false` (don't burn limiter slots). * - For atomic work (AI calls, writes): leave `true` (default). */ wrapInLimiter?: boolean; }) => Promise; //#endregion //# sourceMappingURL=parallelizeGlobal.d.ts.map