export declare const DEFAULT_CONCURRENCY = 8; export declare function getConcurrency(): number; /** * Run `worker` over every item with at most `limit` in flight. Preserves input * order in the returned array. Calls `onProgress(completedCount)` after each * item resolves (rejections are propagated — the first rejection halts later * work but in-flight promises are awaited). */ export declare function runWithConcurrency(items: T[], limit: number, worker: (item: T, index: number) => Promise, onProgress?: (done: number) => void): Promise; //# sourceMappingURL=concurrency.d.ts.map