export type ConcurrencyErrorMode = "continue" | "stop"; export declare function runTasksWithConcurrency(params: { tasks: Array<() => Promise>; limit: number; errorMode?: ConcurrencyErrorMode; onTaskError?: (error: unknown, index: number) => void; }): Promise<{ results: T[]; firstError: unknown; hasError: boolean; }>;