import { fromBinary } from "@bufbuild/protobuf";
import { AgentClientMessageSchema } from "../gen/agent/v1/agent_pb.js";
type ExecClientMessage = NonNullable<ReturnType<typeof fromBinary<typeof AgentClientMessageSchema>>["execClientMessage"]>;
export interface CursorToolError {
    code: "invalid_tool_arguments" | "tool_not_enabled" | "unsupported_tool" | "tool_result_timeout";
    toolName: string;
    toolCallId: string;
    message: string;
    details?: string[];
}
export declare function formatCursorToolResult(message: ExecClientMessage): string;
export declare function formatCursorToolError(error: CursorToolError): string;
export declare function agentExecClientMessageFields(message: ExecClientMessage): string[];
export {};
