import * as z from "zod"; import type { SseFrame } from "../../utils/stream"; import type { ProviderMetadata } from "../shared/schema"; declare const UserContentBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"base64">; media_type: z.ZodString; data: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; }, z.core.$strip>], "type">; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; tool_use_id: z.ZodString; content: z.ZodOptional; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"base64">; media_type: z.ZodString; data: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; }, z.core.$strip>], "type">; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>]>>]>>>; is_error: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"base64">; media_type: z.ZodString; data: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"text">; data: z.ZodString; media_type: z.ZodLiteral<"text/plain">; }, z.core.$strip>], "type">; title: z.ZodOptional>; context: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>], "type">; export type UserContentBlock = z.infer; declare const AssistantContentBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodAny; caller: z.ZodOptional>; extra_content: z.ZodOptional>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; thinking: z.ZodString; signature: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"redacted_thinking">; data: z.ZodString; }, z.core.$strip>], "type">; export type AssistantContentBlock = z.infer; declare const MessagesMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ role: z.ZodLiteral<"user">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"base64">; media_type: z.ZodString; data: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; }, z.core.$strip>], "type">; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; tool_use_id: z.ZodString; content: z.ZodOptional; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"base64">; media_type: z.ZodString; data: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; }, z.core.$strip>], "type">; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>]>>]>>>; is_error: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"base64">; media_type: z.ZodString; data: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"text">; data: z.ZodString; media_type: z.ZodLiteral<"text/plain">; }, z.core.$strip>], "type">; title: z.ZodOptional>; context: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"assistant">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodAny; caller: z.ZodOptional>; extra_content: z.ZodOptional>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; thinking: z.ZodString; signature: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"redacted_thinking">; data: z.ZodString; }, z.core.$strip>], "type">>]>; }, z.core.$strip>], "role">; export type MessagesMessage = z.infer; declare const MessagesCustomToolSchema: z.ZodObject<{ type: z.ZodOptional>; name: z.ZodString; description: z.ZodOptional; input_schema: z.ZodAny; strict: z.ZodOptional; }, z.core.$strip>; export type MessagesCustomTool = z.infer; declare const MessagesHostedToolSchema: z.ZodObject<{ type: z.ZodString; }, z.core.$loose>; export type MessagesHostedTool = z.infer; declare const MessagesToolSchema: z.ZodUnion>; name: z.ZodString; description: z.ZodOptional; input_schema: z.ZodAny; strict: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodString; }, z.core.$loose>]>; export type MessagesTool = z.infer; declare const MessagesToolChoiceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"auto">; disable_parallel_tool_use: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"any">; disable_parallel_tool_use: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"none">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool">; name: z.ZodString; disable_parallel_tool_use: z.ZodOptional; }, z.core.$strip>], "type">; export type MessagesToolChoice = z.infer; declare const MessagesThinkingConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"enabled">; budget_tokens: z.ZodNumber; display: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"disabled">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"adaptive">; display: z.ZodOptional>; }, z.core.$strip>], "type">; export type MessagesThinkingConfig = z.infer; declare const MessagesServiceTierSchema: z.ZodEnum<{ auto: "auto"; standard_only: "standard_only"; }>; export type MessagesServiceTier = z.infer; declare const MessagesOutputConfigSchema: z.ZodObject<{ format: z.ZodOptional; schema: z.ZodAny; }, z.core.$strip>>; effort: z.ZodOptional>; }, z.core.$strip>; export type MessagesOutputConfig = z.infer; export declare const MessagesBodySchema: z.ZodObject<{ model: z.ZodString; max_tokens: z.ZodNumber; messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"base64">; media_type: z.ZodString; data: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; }, z.core.$strip>], "type">; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; tool_use_id: z.ZodString; content: z.ZodOptional; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"base64">; media_type: z.ZodString; data: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; }, z.core.$strip>], "type">; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>]>>]>>>; is_error: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"document">; source: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"base64">; media_type: z.ZodString; data: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"text">; data: z.ZodString; media_type: z.ZodLiteral<"text/plain">; }, z.core.$strip>], "type">; title: z.ZodOptional>; context: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ role: z.ZodLiteral<"assistant">; content: z.ZodUnion; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodAny; caller: z.ZodOptional>; extra_content: z.ZodOptional>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; thinking: z.ZodString; signature: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"redacted_thinking">; data: z.ZodString; }, z.core.$strip>], "type">>]>; }, z.core.$strip>], "role">>; system: z.ZodOptional; text: z.ZodString; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>]>>; stream: z.ZodOptional; trace: z.ZodOptional>, z.ZodEnum<{ full: "full"; off: "off"; recommended: "recommended"; required: "required"; }>]>>; temperature: z.ZodOptional; top_p: z.ZodOptional; stop_sequences: z.ZodOptional>; tools: z.ZodOptional>; name: z.ZodString; description: z.ZodOptional; input_schema: z.ZodAny; strict: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodString; }, z.core.$loose>]>>>; tool_choice: z.ZodOptional; disable_parallel_tool_use: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"any">; disable_parallel_tool_use: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"none">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool">; name: z.ZodString; disable_parallel_tool_use: z.ZodOptional; }, z.core.$strip>], "type">>; thinking: z.ZodOptional; budget_tokens: z.ZodNumber; display: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"disabled">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"adaptive">; display: z.ZodOptional>; }, z.core.$strip>], "type">>>; metadata: z.ZodOptional; }, z.core.$strip>>; service_tier: z.ZodOptional>; cache_control: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>; output_config: z.ZodOptional; schema: z.ZodAny; }, z.core.$strip>>; effort: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; export type MessagesBody = z.infer; export type MessagesInputs = Omit; export declare const MessagesResponseContentBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodUnknown; extra_content: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; thinking: z.ZodString; signature: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"redacted_thinking">; data: z.ZodString; }, z.core.$strip>], "type">; export type MessagesResponseContentBlock = z.infer; export declare const MessagesUsageSchema: z.ZodObject<{ input_tokens: z.ZodNumber; output_tokens: z.ZodNumber; cache_creation_input_tokens: z.ZodOptional; cache_read_input_tokens: z.ZodOptional; }, z.core.$strip>; export type MessagesUsage = z.infer; export declare const MessagesStopReasonSchema: z.ZodNullable>; export type MessagesStopReason = z.infer; export declare const MessagesSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"message">; role: z.ZodLiteral<"assistant">; content: z.ZodArray; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodUnknown; extra_content: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; thinking: z.ZodString; signature: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"redacted_thinking">; data: z.ZodString; }, z.core.$strip>], "type">>; model: z.ZodString; stop_reason: z.ZodNullable>; stop_sequence: z.ZodNullable; usage: z.ZodObject<{ input_tokens: z.ZodNumber; output_tokens: z.ZodNumber; cache_creation_input_tokens: z.ZodOptional; cache_read_input_tokens: z.ZodOptional; }, z.core.$strip>; service_tier: z.ZodOptional>; }, z.core.$strip>; export type Messages = z.infer; export type MessageStartEvent = SseFrame<{ type: "message_start"; message: Messages; }, "message_start">; export type ContentBlockStartEvent = SseFrame<{ type: "content_block_start"; index: number; content_block: { type: "text"; text: string; } | { type: "thinking"; thinking: string; } | { type: "tool_use"; id: string; name: string; input: Record; extra_content?: ProviderMetadata; }; }, "content_block_start">; export type ContentBlockDeltaEvent = SseFrame<{ type: "content_block_delta"; index: number; delta: { type: "text_delta"; text: string; } | { type: "thinking_delta"; thinking: string; } | { type: "signature_delta"; signature: string; } | { type: "input_json_delta"; partial_json: string; }; }, "content_block_delta">; export type ContentBlockStopEvent = SseFrame<{ type: "content_block_stop"; index: number; }, "content_block_stop">; export type MessageDeltaEvent = SseFrame<{ type: "message_delta"; delta: { stop_reason: MessagesStopReason; stop_sequence: string | null; }; usage: MessagesUsage; }, "message_delta">; export type MessageStopEvent = SseFrame<{ type: "message_stop"; }, "message_stop">; export type MessageErrorEvent = SseFrame<{ type: "error"; error: { type: string; message: string; }; }, "error">; export type MessagesStreamEvent = MessageStartEvent | ContentBlockStartEvent | ContentBlockDeltaEvent | ContentBlockStopEvent | MessageDeltaEvent | MessageStopEvent | MessageErrorEvent; export type MessagesStream = ReadableStream; export {};