/**
 * @module utils/concurrency
 * @description Tiny dependency-free concurrency limiter.
 */
/**
 * Map `items` with at most `limit` concurrent invocations of `fn`. Results
 * preserve input order. The first rejection propagates after the workers
 * stop picking up new items (in-flight tasks still settle), matching how
 * the build dispatcher treated `Promise.all` failures.
 */
export declare function mapWithConcurrency<T, R>(items: readonly T[], limit: number, fn: (item: T, index: number) => Promise<R>): Promise<R[]>;
