import { type Reporter, type PackageResult, type BatchSummary, type IStateTracker } from '@quenty/cli-output-helpers/reporting'; /** * Minimal contract the runner needs from each work item: a name used to key * reporter lifecycle calls. Callers pass anything richer (a TargetPackage, * a multi-place deploy unit, etc.); the runner only reads `.name`. */ export interface BatchItem { name: string; } /** Partial result returned by executeAsync — durationMs is optional. */ export type PartialBatchResult = Omit & { /** * Inner-measured duration. When provided, overrides the outer wall-clock * timing (useful in aggregated batch mode where every package's outer * await resolves at the same instant). */ durationMs?: number; }; export interface BatchOptions { items: TItem[]; concurrency?: number; reporter: Reporter; bufferOutput?: boolean; stateTracker?: IStateTracker; executeAsync: (item: TItem, reporter: Reporter) => Promise>; } export declare function runBatchAsync(options: BatchOptions): Promise>; //# sourceMappingURL=batch-runner.d.ts.map