/** * Agent-as-tool — auto-registers `agent_` tools for each agent * with `toolSupported: true`. * * These tools delegate to the background spawner (if available) or * run inline via v2 session prompt (sync fallback). */ import { tool } from '@opencode-ai/plugin'; import type { ToolContext } from '../tools/types'; import type { BackgroundSpawner } from '../runtime/background/spawner'; /** * Create agent-as-tool entries for all agents that declare `toolSupported: true`. */ export declare function createAgentAsTools(ctx: ToolContext & { bgSpawner: BackgroundSpawner | null; }): Record>; //# sourceMappingURL=agent-as-tool.d.ts.map