/** * Tool definitions for subtask functionality. * * Factory functions that create tool definitions with injected dependencies: * - createSubtaskTool: Create a new session with subtask prompt * - createReadSessionTool: Read conversation transcript from a session */ import type { PluginInput, ToolDefinition } from '@opencode-ai/plugin'; import type { SubagentDepthTracker } from '../../utils/subagent-depth'; import type { SubtaskState } from './state'; export type OpencodeClient = PluginInput['client']; /** * Create the subtask tool. * * Takes the OpenCode client as a dependency for TUI and session operations. */ export declare function createSubtaskTool(ctx: PluginInput, state: SubtaskState, depthTracker?: SubagentDepthTracker): ToolDefinition; /** * Create the read_session tool. * * Takes the OpenCode client as a dependency for session.messages() calls. */ export declare function createReadSessionTool(client: OpencodeClient, state: SubtaskState): ToolDefinition;