//#region src/process-in-chunks.d.ts type ChunkingOptions = { chunkSize?: number; throttleSeconds?: number; noThrow?: boolean; }; type ProcessResult = { hasErrors: false; results: R[]; errorMessages?: undefined; } | { hasErrors: true; results: (R | undefined)[]; errorMessages: string[]; }; /** * Iterate over a potentially large set of items and process them in chunks with * some optional CLI feedback on progress. If the process function returns a * value those values are aggregated in the final result. */ declare function processInChunks(allItems: T[], processFn: (value: T, index: number) => R | Promise, options: ChunkingOptions & { noThrow: true; }): Promise>; declare function processInChunks(allItems: T[], processFn: (value: T, index: number) => R | Promise, options?: ChunkingOptions): Promise; /** * Same as processInChunks, but passing the whole chunk to the callback * function. */ declare function processInChunksByChunk(allItems: T[], processFn: (chunk: T[], index: number) => R | Promise, options: ChunkingOptions & { noThrow: true; }): Promise>; declare function processInChunksByChunk(allItems: T[], processFn: (chunk: T[], index: number) => R | Promise, options?: ChunkingOptions): Promise; //#endregion export { ChunkingOptions, ProcessResult, processInChunks, processInChunksByChunk }; //# sourceMappingURL=index.d.mts.map