import { type ProgramIO } from '../cli-helpers.js'; import { getAdapter } from '../../services/ide/ide-registry.js'; import { type SubAgentToolCall } from '../../services/dispatch/sub-agent-dispatcher.js'; export interface BuildDispatchToolCallInput { adapter: ReturnType; role: string; effectivePrompt: string; rid: string; sid: string; projectRoot: string; isolationMode: 'worktree' | 'container' | null; leaseId: string | null; asJson: boolean; } export declare function buildDispatchToolCall(io: ProgramIO, input: BuildDispatchToolCallInput): SubAgentToolCall | null;