export type ManagedAgentStatus = 'idle' | 'spawning' | 'running' | 'stopped' | 'error'; export interface ManagedAgentRecord { agent_id: string; name: string; cli: string; working_dir: string; status: ManagedAgentStatus; pid: number | null; spawned_at: string | null; stopped_at: string | null; last_error: string | null; } export declare class ManagedAgentRegistry { #private; list(): ManagedAgentRecord[]; get(agentId: string): ManagedAgentRecord | null; upsert(rec: Pick): ManagedAgentRecord; setWorkingDir(agentId: string, workingDir: string): ManagedAgentRecord | null; markRunning(agentId: string, pid: number): ManagedAgentRecord | null; markStopped(agentId: string, reason?: string): ManagedAgentRecord | null; markError(agentId: string, message: string): ManagedAgentRecord | null; liveAgentIds(): string[]; workingDirs(): string[]; }