import * as z from "zod/v3";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
/**
 * Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
 */
export type ToolResultPart = {
    kind: "tool_result";
    toolCallId: string;
    result?: any | undefined;
    metadata?: {
        [k: string]: any;
    } | undefined;
};
/** @internal */
export declare const ToolResultPart$inboundSchema: z.ZodType<ToolResultPart, z.ZodTypeDef, unknown>;
/** @internal */
export type ToolResultPart$Outbound = {
    kind: "tool_result";
    tool_call_id: string;
    result?: any | undefined;
    metadata?: {
        [k: string]: any;
    } | undefined;
};
/** @internal */
export declare const ToolResultPart$outboundSchema: z.ZodType<ToolResultPart$Outbound, z.ZodTypeDef, ToolResultPart>;
export declare function toolResultPartToJSON(toolResultPart: ToolResultPart): string;
export declare function toolResultPartFromJSON(jsonString: string): SafeParseResult<ToolResultPart, SDKValidationError>;
//# sourceMappingURL=toolresultpart.d.ts.map