/** * A tiny fixed-size worker pool — the concurrency primitive shared by the * shard runner and the legacy `--workspace` fan-out. * * Each of `concurrency` slots pulls the next item off a shared queue, runs * `run(item)`, and repeats until the queue is empty. The cap bounds how * many child processes run at once (memory/oversubscription control); the * total number of items is unbounded. * * Results are returned in COMPLETION order, not input order — callers that * need determinism sort afterward (shards sort by shardId). * * @throws {TypeError} When `concurrency` is not a finite number. */ export declare function runWorkerPool(items: readonly I[], concurrency: number, run: (item: I) => Promise): Promise; //# sourceMappingURL=worker-pool.d.ts.map