import { CancellationToken } from "../../../../../base/common/cancellation.js"; import { IVoiceToolCall, IVoiceDispatchResult } from "../../common/voiceClient/voiceClientService.js"; import { IVoiceToolDispatchDelegate } from "./voiceToolDispatchService.js"; export interface IVoiceToolDispatchService { readonly _serviceBrand: undefined; /** * Set the delegate that bridges widget/UI concerns. * Must be called before dispatching tool calls. */ setDelegate(delegate: IVoiceToolDispatchDelegate): void; /** * Dispatch a tool call and return the result string. */ dispatchToolCall(toolCall: IVoiceToolCall): Promise; /** * Apply a backend-resolved response to whatever a session is waiting on. * * Separate from `dispatchToolCall` because it answers with a structured * outcome rather than a string: the backend only speaks an acknowledgement * for something it has actually observed, so "it landed" and "it didn't" * have to be distinguishable. */ respondToSession(toolCall: IVoiceToolCall, token?: CancellationToken): Promise; } export declare const IVoiceToolDispatchService: import("../../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier;