/** A promise that resolves after `ms`. */ export declare function delay(ms: number): Promise; /** * Results in input order. * * A sliding window of `limit` in-flight promises: push until it is full, then * yield the oldest. Head-of-line blocking is the price — a slow record holds * back the ones behind it — and it buys output you can write straight to a file * next to the input. */ export declare function mapOrdered(source: AsyncIterable | Iterable, limit: number, work: (item: In, index: number) => Promise, signal?: AbortSignal): AsyncGenerator; /** * Results in completion order. * * Each promise carries its own key so the settled one can be removed from the * pool — `Promise.race` tells you the value, never which promise produced it. */ export declare function mapUnordered(source: AsyncIterable | Iterable, limit: number, work: (item: In, index: number) => Promise, signal?: AbortSignal): AsyncGenerator; /** * No promises at all. * * When nothing in the pipeline awaits — word lists and PII detection are both * synchronous — two promises per record is pure overhead, and at a million * records it is the difference you can measure. */ export declare function mapSync(source: AsyncIterable | Iterable, work: (item: In, index: number) => Out, signal?: AbortSignal): AsyncGenerator; //# sourceMappingURL=concurrency.d.ts.map