import type { AsyncMapper } from '../types.js'; export interface PMapOptions { /** * Number of concurrent promises. Defaults to Infinity (all at once). */ concurrency?: number; /** * When false, continues processing remaining items even if some fail. * Errors are collected and thrown as AggregateError at the end. * Defaults to true (stop on first error). */ stopOnError?: boolean; } /** * Map over an array with async function, with optional concurrency limit. * Results are returned in the same order as input. * * @param items - Input array * @param mapper - Async function to apply to each item * @param options - Options including concurrency limit * @returns Promise resolving to mapped array * * @example * // Continue on error, collect all errors * const results = await pMapFast(urls, fetch, { stopOnError: false }) */ export declare function pMapFast(items: readonly T[], mapper: AsyncMapper, options?: PMapOptions): Promise; //# sourceMappingURL=map.d.ts.map