/**
 * Simple typed messages for tool calls between agent and widget.
 * No JSON-RPC. No MCP. Just typed messages.
 */
export interface ToolRequest {
    id: string;
    tool: string;
    args: Record<string, unknown>;
    mode: 'show' | 'do';
    stateVersion: number;
    explanation?: string;
}
export interface ToolResponse<T = {
    text: string;
}> {
    id: string;
    success: boolean;
    data: T;
    error: string | null;
    stateVersion: number;
}
export declare function isToolRequest(message: unknown): message is ToolRequest;
//# sourceMappingURL=toolMessages.d.ts.map