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 Part = (OutputText & { type: "output_text"; }) | (Refusal & { type: "refusal"; }) | (ReasoningText & { type: "reasoning_text"; }); export type ResponseContentPartAddedEvent = { type: "response.content_part.added"; sequenceNumber: number; itemId: string; outputIndex: number; contentIndex: number; part: (OutputText & { type: "output_text"; }) | (Refusal & { type: "refusal"; }) | (ReasoningText & { type: "reasoning_text"; }); }; /** @internal */ export declare const Part$inboundSchema: z.ZodType; /** @internal */ export type Part$Outbound = (OutputText$Outbound & { type: "output_text"; }) | (Refusal$Outbound & { type: "refusal"; }) | (ReasoningText$Outbound & { type: "reasoning_text"; }); /** @internal */ export declare const Part$outboundSchema: z.ZodType; export declare function partToJSON(part: Part): string; export declare function partFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ResponseContentPartAddedEvent$inboundSchema: z.ZodType; /** @internal */ export type ResponseContentPartAddedEvent$Outbound = { type: "response.content_part.added"; 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 ResponseContentPartAddedEvent$outboundSchema: z.ZodType; export declare function responseContentPartAddedEventToJSON(responseContentPartAddedEvent: ResponseContentPartAddedEvent): string; export declare function responseContentPartAddedEventFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=responsecontentpartaddedevent.d.ts.map