import type { Provider, ThinkingLevel } from "@kenkaiiii/gg-ai"; import { AgentSession } from "../core/agent-session.js"; /** One bounded, tool-free chance to turn the durable transcript into a useful result. */ export declare function recoverTimedOutTurn(activeSession: Pick, currentOutput: () => string, setController: (controller: AbortController) => void): Promise; export interface SubagentWorkerInitialize { provider: Provider; model: string; fallbackModel?: string; cwd: string; baseUrl?: string; /** Replaces the whole system prompt. */ systemPrompt?: string; /** Agent body composed with the standard prompt scaffolding — the delegation path. */ agentPrompt?: string; /** Whether the composed prompt includes project instruction files. */ agentContext?: "project" | "none"; thinkingLevel?: ThinkingLevel; allowedTools?: string[]; /** MCP servers this agent may connect, derived from its `tools:` frontmatter. */ allowedMcpServers?: string[]; promptCacheKey?: string; sessionRootDir: string; childSessionPath?: string; } export declare function runSubagentWorkerMode(): Promise; //# sourceMappingURL=subagent-worker-mode.d.ts.map