import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export declare const ToolResultPartKind: {
    readonly ToolResult: "tool_result";
};
export type ToolResultPartKind = ClosedEnum<typeof ToolResultPartKind>;
/**
 * The result of a tool execution. Contains the tool call ID for correlation and the result data from the tool invocation.
 */
export type ToolResultPart = {
    kind: ToolResultPartKind;
    toolCallId: string;
    result?: any | undefined;
    metadata?: {
        [k: string]: any;
    } | undefined;
};
/** @internal */
export declare const ToolResultPartKind$inboundSchema: z.ZodNativeEnum<typeof ToolResultPartKind>;
/** @internal */
export declare const ToolResultPartKind$outboundSchema: z.ZodNativeEnum<typeof ToolResultPartKind>;
/** @internal */
export declare const ToolResultPart$inboundSchema: z.ZodType<ToolResultPart, z.ZodTypeDef, unknown>;
/** @internal */
export type ToolResultPart$Outbound = {
    kind: string;
    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