/** * Bounded-concurrency async map. * * Runs `fn` over `items` with at most `limit` in-flight promises. Order of * results matches input order. Errors reject the returned promise on the first * failure — the remaining in-flight work is not awaited; this matches * `Promise.all` semantics for callers that want fail-fast behavior. * * Lives here (rather than imported from `@wrongstack/bench`) because: * 1. tools sits below bench in the dependency graph — bench is a consumer of * tools, never the other way around. * 2. The semantics used by grep/glob are deliberately simple (fail-fast, * no cancellation, no progress) and don't need bench's richer options. */ export declare function mapWithConcurrency(items: readonly T[], limit: number, fn: (item: T) => Promise): Promise; //# sourceMappingURL=_concurrency.d.ts.map