/** * CLI configuration resolution. * Merges defaults, environment variables, and CLI arguments. */ import type { LogLevel } from './logger.js'; /** * CLI configuration interface */ export interface CLIConfig { /** Log level */ logLevel: LogLevel; /** Enable pretty logging (colors, formatting) */ prettyLog: boolean; /** Default workflow file path */ workflowFile?: string; /** Working directory for workflow execution */ workdir: string; /** Orchestrator URL for worker mode */ orchestratorUrl?: string; /** Worker ID for registration */ workerId?: string; /** Health check port */ healthPort: number; /** Heartbeat interval in milliseconds */ heartbeatInterval: number; /** Job poll interval in milliseconds */ pollInterval: number; /** Agency mode: 'subprocess' | 'network' */ agencyMode: 'subprocess' | 'network'; /** Agency URL for network mode */ agencyUrl?: string; /** Agency command for subprocess mode */ agencyCommand?: string; } /** * Resolve final configuration by merging sources * Priority: CLI args > env vars > defaults */ export declare function resolveConfig(cliArgs?: Partial): CLIConfig; /** * Validate configuration * @throws Error if configuration is invalid */ export declare function validateConfig(config: CLIConfig): void; /** * Create and validate configuration */ export declare function createConfig(cliArgs?: Partial): CLIConfig; //# sourceMappingURL=config.d.ts.map