import type { Promisable } from 'type-fest'; /** * Options for for each async. */ type ForEachAsyncOptions = { /** * Maximum number of tasks running in parallel * * @default Infinity */ readonly maxParallelCount?: number; }; /** * Async version of Array.forEach * * @param array - Array to iterate over * @param options - Options for the function * @param callbackfunction - Function to call for each item * @deprecated [🪂] Use queues instead * * @public exported from `@promptbook/utils` */ export declare function forEachAsync(array: ReadonlyArray, options: ForEachAsyncOptions, callbackfunction: (value: TItem, index: number, array: ReadonlyArray) => Promisable): Promise; export {};