export declare const DEFAULT_CONCURRENCY = 4; export declare class AbortedError extends Error { constructor(message?: string); } /** * Map `items` through `fn` with at most `limit` in flight, preserving input * order in the result. A rejection is propagated once every in-flight worker * has settled (so no rejection is left unhandled) and no further items start. * * `signal` stops *scheduling*; work already in flight is expected to honour the * same signal itself (every runner in utils/exec.ts does). */ export declare function mapLimit(items: readonly T[], limit: number, fn: (item: T, index: number) => Promise, signal?: AbortSignal): Promise; /** mapLimit over the entries of a record, keyed results back into a record. */ export declare function mapRecordLimit(record: Record, limit: number, fn: (key: string, value: V) => Promise, signal?: AbortSignal): Promise>;