/** * Parallel task dispatcher — runs multiple OrchestratorTasks concurrently. */ import type { BridgeChunk } from "../bridge/types.js"; import type { SlotName } from "../slots/types.js"; export interface ParallelTask { prompt: string; targetSlot?: SlotName; label?: string; } export interface ParallelChunk { taskIndex: number; label: string; slot: SlotName; chunk: BridgeChunk; } export interface ParallelResult { taskIndex: number; label: string; slot: SlotName; content: string; error?: string; } export interface ParallelConfig { maxConcurrency: number; } export declare const DEFAULT_PARALLEL_CONFIG: ParallelConfig; /** * Run multiple tasks with bounded concurrency. * Returns results as they complete. */ export declare function runParallel(items: T[], fn: (item: T, index: number) => Promise, maxConcurrency: number): Promise; //# sourceMappingURL=parallel.d.ts.map