import { Command } from 'commander'; type ShadowMode = 'subagent' | 'process'; type ExitFn = (code: number) => never; interface WorkerInfo { name: string; runtime?: string; pid?: number; } interface SetModelResult { success: boolean; model?: string; } export interface AgentManagementClient { spawnPty(options: { name: string; cli: string; channels: string[]; task: string; team?: string; model?: string; cwd?: string; shadowOf?: string; shadowMode?: ShadowMode; continueFrom?: string; skipRelayPrompt?: boolean; }): Promise; listAgents(): Promise; release(name: string, reason: string): Promise; setModel(name: string, model: string, options: { timeoutMs: number; }): Promise; getMetrics?(agentName?: string): Promise; shutdown(): Promise; } export interface AgentManagementDependencies { getProjectRoot: () => string; getDataDir: () => string; createClient: (cwd: string) => AgentManagementClient | Promise; createAutostartClient: (cwd: string) => AgentManagementClient | Promise; readTaskFromStdin: () => Promise; fileExists: (filePath: string) => boolean; readFile: (filePath: string, encoding?: BufferEncoding) => string; readFileTail: (filePath: string, maxBytes: number, encoding?: BufferEncoding) => { text: string; size: number; }; readFileBuffer?: (filePath: string) => Buffer; readFileTailBuffer?: (filePath: string, maxBytes: number) => { buffer: Buffer; size: number; }; readFileFrom: (filePath: string, offset: number, maxBytes: number, encoding?: BufferEncoding) => { text: string; size: number; }; readFileFromBuffer?: (filePath: string, offset: number, maxBytes: number) => { buffer: Buffer; size: number; }; fetch: (url: string, init?: RequestInit) => Promise; nowIso: () => string; killProcess: (pid: number, signal?: NodeJS.Signals | number) => void; sleep: (ms: number) => Promise; writeChunk: (chunk: string | Uint8Array) => void; log: (...args: unknown[]) => void; error: (...args: unknown[]) => void; exit: ExitFn; } export declare function registerAgentManagementCommands(program: Command, overrides?: Partial): void; export {}; //# sourceMappingURL=agent-management.d.ts.map