import * as z from "zod/v4"; import { ClosedEnum, OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { McpToolCallError, McpToolCallError$Outbound } from "./mcptoolcallerror.js"; export declare const McpCallItemStatus: { readonly InProgress: "in_progress"; readonly Completed: "completed"; readonly Incomplete: "incomplete"; readonly Calling: "calling"; readonly Failed: "failed"; }; export type McpCallItemStatus = OpenEnum; export declare const McpCallItemType: { readonly McpCall: "mcp_call"; }; export type McpCallItemType = ClosedEnum; /** * An MCP tool call with its output or error */ export type McpCallItem = { approvalRequestId?: string | null | undefined; arguments: string; /** * Error from an MCP tool call, either a plain message or a structured error */ error?: McpToolCallError | null | undefined; id: string; name: string; output?: string | null | undefined; serverLabel: string; status?: McpCallItemStatus | undefined; type: McpCallItemType; }; /** @internal */ export declare const McpCallItemStatus$inboundSchema: z.ZodType; /** @internal */ export declare const McpCallItemStatus$outboundSchema: z.ZodType; /** @internal */ export declare const McpCallItemType$inboundSchema: z.ZodEnum; /** @internal */ export declare const McpCallItemType$outboundSchema: z.ZodEnum; /** @internal */ export declare const McpCallItem$inboundSchema: z.ZodType; /** @internal */ export type McpCallItem$Outbound = { approval_request_id?: string | null | undefined; arguments: string; error?: McpToolCallError$Outbound | null | undefined; id: string; name: string; output?: string | null | undefined; server_label: string; status?: string | undefined; type: string; }; /** @internal */ export declare const McpCallItem$outboundSchema: z.ZodType; export declare function mcpCallItemToJSON(mcpCallItem: McpCallItem): string; export declare function mcpCallItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=mcpcallitem.d.ts.map