export interface AgentRunnerOptions { root: string; prompt: string; agent: string; model?: string; agents?: Record; onOutput?: (data: string) => void; } /** Handle returned by startAgent() for interactive worker mode. */ export interface AgentRunnerHandle { /** Resolves with the exit code when the agent process exits. */ exitPromise: Promise; /** Write data to the agent's stdin (for Q&A relay). */ writeStdin: (data: string) => void; /** Kill the agent process. */ kill: () => void; /** Path to the temp prompt file (cleaned up on exit). */ promptFile: string; } export declare function runAgent(options: AgentRunnerOptions): Promise; /** * Start an agent in interactive mode (stdin piped for Q&A). * Returns a handle for writing to stdin, killing the process, and awaiting exit. */ export declare function startAgent(options: AgentRunnerOptions): Promise; //# sourceMappingURL=agent-runner.d.ts.map