import { type SpawnMode } from "../../../agent-spawn/dist/types.js"; import type { OpenTaskListOptions } from "../../../task-list/dist/index.js"; export type StateMode = SpawnMode; export interface StateDefinition { prompt?: string; agent?: string; model?: string; mode?: StateMode; terminal?: boolean; } export interface WorkflowConfig { tasks?: OpenTaskListOptions; states: Record; activeStateNames: readonly string[]; terminalStateNames: readonly string[]; stateOrder: readonly string[]; polling: { intervalMs: number; }; workspace: { root: string; }; agent: { service: string; list?: string; maxConcurrentAgents: number; maxRetryBackoffMs: number; }; } export type ResolvedConfig = WorkflowConfig; export declare function resolveConfig(raw: unknown, cwd: string): ResolvedConfig;