import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { OutputText, OutputText$Outbound } from "./outputtext.js"; import { ReasoningText, ReasoningText$Outbound } from "./reasoningtext.js"; import { Refusal, Refusal$Outbound } from "./refusal.js"; export type ResponseContentPartDoneEventPart = (OutputText & { type: "output_text"; }) | (Refusal & { type: "refusal"; }) | (ReasoningText & { type: "reasoning_text"; }); export type ResponseContentPartDoneEvent = { type: "response.content_part.done"; sequenceNumber: number; itemId: string; outputIndex: number; contentIndex: number; part: (OutputText & { type: "output_text"; }) | (Refusal & { type: "refusal"; }) | (ReasoningText & { type: "reasoning_text"; }); }; /** @internal */ export declare const ResponseContentPartDoneEventPart$inboundSchema: z.ZodType; /** @internal */ export type ResponseContentPartDoneEventPart$Outbound = (OutputText$Outbound & { type: "output_text"; }) | (Refusal$Outbound & { type: "refusal"; }) | (ReasoningText$Outbound & { type: "reasoning_text"; }); /** @internal */ export declare const ResponseContentPartDoneEventPart$outboundSchema: z.ZodType; export declare function responseContentPartDoneEventPartToJSON(responseContentPartDoneEventPart: ResponseContentPartDoneEventPart): string; export declare function responseContentPartDoneEventPartFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ResponseContentPartDoneEvent$inboundSchema: z.ZodType; /** @internal */ export type ResponseContentPartDoneEvent$Outbound = { type: "response.content_part.done"; sequence_number: number; item_id: string; output_index: number; content_index: number; part: (OutputText$Outbound & { type: "output_text"; }) | (Refusal$Outbound & { type: "refusal"; }) | (ReasoningText$Outbound & { type: "reasoning_text"; }); }; /** @internal */ export declare const ResponseContentPartDoneEvent$outboundSchema: z.ZodType; export declare function responseContentPartDoneEventToJSON(responseContentPartDoneEvent: ResponseContentPartDoneEvent): string; export declare function responseContentPartDoneEventFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=responsecontentpartdoneevent.d.ts.map