/** * [WHO]: SubAgentRuntime class - spawn, abort, lifecycle management for SubAgents * [FROM]: Depends on ./sub-agent-types, ./sub-agent-backend * [TO]: Consumed by ./index.ts, extensions/builtin/subagent/* * [HERE]: core/sub-agent/sub-agent-runtime.ts - SubAgent runtime implementation */ import type { SubAgentBackend, SubAgentHandle, SubAgentSpec } from "./sub-agent-types.js"; /** * Runtime for managing SubAgents. * Provides spawn/abort/lifecycle operations. */ export declare class SubAgentRuntime { private backend; private activeAgents; constructor(backend: SubAgentBackend); /** * Spawn a new SubAgent with the given specification. * @param spec The SubAgent specification * @returns A handle to the spawned SubAgent */ spawn(spec: SubAgentSpec): Promise; /** * Get all active SubAgent handles. */ getActiveAgents(): SubAgentHandle[]; /** * Abort all active SubAgents. */ abortAll(): Promise; /** * Terminate all active SubAgents. */ terminateAll(): Promise; }