import { z } from 'zod'; export interface Config { host: string; port: number; baseUrl: string; openaiApiKey: string; bigModelName: string; smallModelName: string; referrerUrl: string; logLevel: string; logFilePath?: string; reload: boolean; appName: string; appVersion: string; claudeCodeVersion?: string; } export declare const ContentBlockTextSchema: z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>; export declare const ContentBlockImageSourceSchema: z.ZodObject<{ type: z.ZodString; media_type: z.ZodString; data: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; media_type: string; data: string; }, { type: string; media_type: string; data: string; }>; export declare const ContentBlockImageSchema: z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodObject<{ type: z.ZodString; media_type: z.ZodString; data: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; media_type: string; data: string; }, { type: string; media_type: string; data: string; }>; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: string; media_type: string; data: string; }; }, { type: "image"; source: { type: string; media_type: string; data: string; }; }>; export declare const ContentBlockToolUseSchema: z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, "strip", z.ZodTypeAny, { type: "tool_use"; id: string; name: string; input: Record; }, { type: "tool_use"; id: string; name: string; input: Record; }>; export declare const ContentBlockToolResultSchema: z.ZodObject<{ type: z.ZodLiteral<"tool_result">; tool_use_id: z.ZodString; content: z.ZodUnion<[z.ZodString, z.ZodArray, "many">, z.ZodArray]>; is_error: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; }, { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; }>; export declare const ContentBlockSchema: z.ZodUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodObject<{ type: z.ZodString; media_type: z.ZodString; data: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; media_type: string; data: string; }, { type: string; media_type: string; data: string; }>; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: string; media_type: string; data: string; }; }, { type: "image"; source: { type: string; media_type: string; data: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, "strip", z.ZodTypeAny, { type: "tool_use"; id: string; name: string; input: Record; }, { type: "tool_use"; id: string; name: string; input: Record; }>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; tool_use_id: z.ZodString; content: z.ZodUnion<[z.ZodString, z.ZodArray, "many">, z.ZodArray]>; is_error: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; }, { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; }>]>; export declare const SystemContentSchema: z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>; export declare const MessageSchema: z.ZodObject<{ role: z.ZodEnum<["user", "assistant"]>; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodObject<{ type: z.ZodString; media_type: z.ZodString; data: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; media_type: string; data: string; }, { type: string; media_type: string; data: string; }>; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: string; media_type: string; data: string; }; }, { type: "image"; source: { type: string; media_type: string; data: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, "strip", z.ZodTypeAny, { type: "tool_use"; id: string; name: string; input: Record; }, { type: "tool_use"; id: string; name: string; input: Record; }>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; tool_use_id: z.ZodString; content: z.ZodUnion<[z.ZodString, z.ZodArray, "many">, z.ZodArray]>; is_error: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; }, { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; }>]>, "many">]>; }, "strip", z.ZodTypeAny, { content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: string; media_type: string; data: string; }; } | { type: "tool_use"; id: string; name: string; input: Record; } | { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; })[]; role: "user" | "assistant"; }, { content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: string; media_type: string; data: string; }; } | { type: "tool_use"; id: string; name: string; input: Record; } | { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; })[]; role: "user" | "assistant"; }>; export declare const ToolSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; input_schema: z.ZodRecord; }, "strip", z.ZodTypeAny, { name: string; input_schema: Record; description?: string | undefined; }, { name: string; input_schema: Record; description?: string | undefined; }>; export declare const ToolChoiceSchema: z.ZodObject<{ type: z.ZodEnum<["auto", "any", "tool"]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "auto" | "any" | "tool"; name?: string | undefined; }, { type: "auto" | "any" | "tool"; name?: string | undefined; }>; export declare const MessagesRequestSchema: z.ZodObject<{ model: z.ZodString; max_tokens: z.ZodNumber; messages: z.ZodArray; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodObject<{ type: z.ZodString; media_type: z.ZodString; data: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; media_type: string; data: string; }, { type: string; media_type: string; data: string; }>; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: string; media_type: string; data: string; }; }, { type: "image"; source: { type: string; media_type: string; data: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, "strip", z.ZodTypeAny, { type: "tool_use"; id: string; name: string; input: Record; }, { type: "tool_use"; id: string; name: string; input: Record; }>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; tool_use_id: z.ZodString; content: z.ZodUnion<[z.ZodString, z.ZodArray, "many">, z.ZodArray]>; is_error: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; }, { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; }>]>, "many">]>; }, "strip", z.ZodTypeAny, { content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: string; media_type: string; data: string; }; } | { type: "tool_use"; id: string; name: string; input: Record; } | { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; })[]; role: "user" | "assistant"; }, { content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: string; media_type: string; data: string; }; } | { type: "tool_use"; id: string; name: string; input: Record; } | { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; })[]; role: "user" | "assistant"; }>, "many">; system: z.ZodOptional; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, "many">]>>; stop_sequences: z.ZodOptional>; stream: z.ZodDefault>; temperature: z.ZodOptional; top_p: z.ZodOptional; top_k: z.ZodOptional; metadata: z.ZodOptional>; tools: z.ZodOptional; input_schema: z.ZodRecord; }, "strip", z.ZodTypeAny, { name: string; input_schema: Record; description?: string | undefined; }, { name: string; input_schema: Record; description?: string | undefined; }>, "many">>; tool_choice: z.ZodOptional; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "auto" | "any" | "tool"; name?: string | undefined; }, { type: "auto" | "any" | "tool"; name?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { model: string; max_tokens: number; messages: { content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: string; media_type: string; data: string; }; } | { type: "tool_use"; id: string; name: string; input: Record; } | { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; })[]; role: "user" | "assistant"; }[]; stream: boolean; system?: string | { type: "text"; text: string; }[] | undefined; stop_sequences?: string[] | undefined; temperature?: number | undefined; top_p?: number | undefined; top_k?: number | undefined; metadata?: Record | undefined; tools?: { name: string; input_schema: Record; description?: string | undefined; }[] | undefined; tool_choice?: { type: "auto" | "any" | "tool"; name?: string | undefined; } | undefined; }, { model: string; max_tokens: number; messages: { content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: string; media_type: string; data: string; }; } | { type: "tool_use"; id: string; name: string; input: Record; } | { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; })[]; role: "user" | "assistant"; }[]; system?: string | { type: "text"; text: string; }[] | undefined; stop_sequences?: string[] | undefined; stream?: boolean | undefined; temperature?: number | undefined; top_p?: number | undefined; top_k?: number | undefined; metadata?: Record | undefined; tools?: { name: string; input_schema: Record; description?: string | undefined; }[] | undefined; tool_choice?: { type: "auto" | "any" | "tool"; name?: string | undefined; } | undefined; }>; export declare const TokenCountRequestSchema: z.ZodObject<{ model: z.ZodString; messages: z.ZodArray; content: z.ZodUnion<[z.ZodString, z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodObject<{ type: z.ZodString; media_type: z.ZodString; data: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; media_type: string; data: string; }, { type: string; media_type: string; data: string; }>; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: string; media_type: string; data: string; }; }, { type: "image"; source: { type: string; media_type: string; data: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, "strip", z.ZodTypeAny, { type: "tool_use"; id: string; name: string; input: Record; }, { type: "tool_use"; id: string; name: string; input: Record; }>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; tool_use_id: z.ZodString; content: z.ZodUnion<[z.ZodString, z.ZodArray, "many">, z.ZodArray]>; is_error: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; }, { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; }>]>, "many">]>; }, "strip", z.ZodTypeAny, { content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: string; media_type: string; data: string; }; } | { type: "tool_use"; id: string; name: string; input: Record; } | { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; })[]; role: "user" | "assistant"; }, { content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: string; media_type: string; data: string; }; } | { type: "tool_use"; id: string; name: string; input: Record; } | { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; })[]; role: "user" | "assistant"; }>, "many">; system: z.ZodOptional; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, "many">]>>; tools: z.ZodOptional; input_schema: z.ZodRecord; }, "strip", z.ZodTypeAny, { name: string; input_schema: Record; description?: string | undefined; }, { name: string; input_schema: Record; description?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { model: string; messages: { content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: string; media_type: string; data: string; }; } | { type: "tool_use"; id: string; name: string; input: Record; } | { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; })[]; role: "user" | "assistant"; }[]; system?: string | { type: "text"; text: string; }[] | undefined; tools?: { name: string; input_schema: Record; description?: string | undefined; }[] | undefined; }, { model: string; messages: { content: string | ({ type: "text"; text: string; } | { type: "image"; source: { type: string; media_type: string; data: string; }; } | { type: "tool_use"; id: string; name: string; input: Record; } | { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; })[]; role: "user" | "assistant"; }[]; system?: string | { type: "text"; text: string; }[] | undefined; tools?: { name: string; input_schema: Record; description?: string | undefined; }[] | undefined; }>; export declare const UsageSchema: z.ZodObject<{ input_tokens: z.ZodNumber; output_tokens: z.ZodNumber; }, "strip", z.ZodTypeAny, { input_tokens: number; output_tokens: number; }, { input_tokens: number; output_tokens: number; }>; export declare const MessagesResponseSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"message">; role: z.ZodLiteral<"assistant">; model: z.ZodString; content: z.ZodArray; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "text"; text: string; }, { type: "text"; text: string; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodObject<{ type: z.ZodString; media_type: z.ZodString; data: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; media_type: string; data: string; }, { type: string; media_type: string; data: string; }>; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: string; media_type: string; data: string; }; }, { type: "image"; source: { type: string; media_type: string; data: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, "strip", z.ZodTypeAny, { type: "tool_use"; id: string; name: string; input: Record; }, { type: "tool_use"; id: string; name: string; input: Record; }>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; tool_use_id: z.ZodString; content: z.ZodUnion<[z.ZodString, z.ZodArray, "many">, z.ZodArray]>; is_error: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; }, { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; }>]>, "many">; stop_reason: z.ZodOptional>>; stop_sequence: z.ZodOptional>; usage: z.ZodObject<{ input_tokens: z.ZodNumber; output_tokens: z.ZodNumber; }, "strip", z.ZodTypeAny, { input_tokens: number; output_tokens: number; }, { input_tokens: number; output_tokens: number; }>; }, "strip", z.ZodTypeAny, { type: "message"; id: string; content: ({ type: "text"; text: string; } | { type: "image"; source: { type: string; media_type: string; data: string; }; } | { type: "tool_use"; id: string; name: string; input: Record; } | { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; })[]; role: "assistant"; model: string; usage: { input_tokens: number; output_tokens: number; }; stop_sequence?: string | null | undefined; stop_reason?: "tool_use" | "max_tokens" | "end_turn" | "stop_sequence" | "error" | null | undefined; }, { type: "message"; id: string; content: ({ type: "text"; text: string; } | { type: "image"; source: { type: string; media_type: string; data: string; }; } | { type: "tool_use"; id: string; name: string; input: Record; } | { type: "tool_result"; tool_use_id: string; content: string | any[] | Record[]; is_error?: boolean | undefined; })[]; role: "assistant"; model: string; usage: { input_tokens: number; output_tokens: number; }; stop_sequence?: string | null | undefined; stop_reason?: "tool_use" | "max_tokens" | "end_turn" | "stop_sequence" | "error" | null | undefined; }>; export declare const TokenCountResponseSchema: z.ZodObject<{ input_tokens: z.ZodNumber; }, "strip", z.ZodTypeAny, { input_tokens: number; }, { input_tokens: number; }>; export declare enum AnthropicErrorType { INVALID_REQUEST = "invalid_request_error", AUTHENTICATION = "authentication_error", PERMISSION = "permission_error", NOT_FOUND = "not_found_error", RATE_LIMIT = "rate_limit_error", API_ERROR = "api_error", OVERLOADED = "overloaded_error", REQUEST_TOO_LARGE = "request_too_large_error" } export declare const AnthropicErrorDetailSchema: z.ZodObject<{ type: z.ZodNativeEnum; message: z.ZodString; provider: z.ZodOptional; provider_message: z.ZodOptional; provider_code: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: AnthropicErrorType; message: string; provider?: string | undefined; provider_message?: string | undefined; provider_code?: string | number | undefined; }, { type: AnthropicErrorType; message: string; provider?: string | undefined; provider_message?: string | undefined; provider_code?: string | number | undefined; }>; export declare const AnthropicErrorResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"error">; error: z.ZodObject<{ type: z.ZodNativeEnum; message: z.ZodString; provider: z.ZodOptional; provider_message: z.ZodOptional; provider_code: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: AnthropicErrorType; message: string; provider?: string | undefined; provider_message?: string | undefined; provider_code?: string | number | undefined; }, { type: AnthropicErrorType; message: string; provider?: string | undefined; provider_message?: string | undefined; provider_code?: string | number | undefined; }>; }, "strip", z.ZodTypeAny, { type: "error"; error: { type: AnthropicErrorType; message: string; provider?: string | undefined; provider_message?: string | undefined; provider_code?: string | number | undefined; }; }, { type: "error"; error: { type: AnthropicErrorType; message: string; provider?: string | undefined; provider_message?: string | undefined; provider_code?: string | number | undefined; }; }>; export declare enum LogEvent { MODEL_SELECTION = "model_selection", REQUEST_START = "request_start", REQUEST_COMPLETED = "request_completed", REQUEST_FAILURE = "request_failure", ANTHROPIC_REQUEST = "anthropic_body", OPENAI_REQUEST = "openai_request", OPENAI_RESPONSE = "openai_response", ANTHROPIC_RESPONSE = "anthropic_response", STREAMING_REQUEST = "streaming_request", STREAM_INTERRUPTED = "stream_interrupted", TOKEN_COUNT = "token_count", TOKEN_ENCODER_LOAD_FAILED = "token_encoder_load_failed", SYSTEM_PROMPT_ADJUSTED = "system_prompt_adjusted", TOOL_INPUT_SERIALIZATION_FAILURE = "tool_input_serialization_failure", IMAGE_FORMAT_UNSUPPORTED = "image_format_unsupported", MESSAGE_FORMAT_NORMALIZED = "message_format_normalized", TOOL_RESULT_SERIALIZATION_FAILURE = "tool_result_serialization_failure", TOOL_RESULT_PROCESSING = "tool_result_processing", TOOL_CHOICE_UNSUPPORTED = "tool_choice_unsupported", TOOL_ARGS_TYPE_MISMATCH = "tool_args_type_mismatch", TOOL_ARGS_PARSE_FAILURE = "tool_args_parse_failure", TOOL_ARGS_UNEXPECTED = "tool_args_unexpected", TOOL_ID_PLACEHOLDER = "tool_id_placeholder", TOOL_ID_UPDATED = "tool_id_updated", PARAMETER_UNSUPPORTED = "parameter_unsupported", HEALTH_CHECK = "health_check", PROVIDER_ERROR_DETAILS = "provider_error_details" } export interface LogError { name: string; message: string; stack_trace?: string; args?: unknown[]; } export interface LogRecord { event: string; message: string; request_id?: string; data?: Record; error?: LogError; } export interface ProviderErrorMetadata { provider_name: string; raw_error?: Record; } export type ContentBlockText = z.infer; export type ContentBlockImage = z.infer; export type ContentBlockToolUse = z.infer; export type ContentBlockToolResult = z.infer; export type ContentBlock = z.infer; export type SystemContent = z.infer; export type Message = z.infer; export type Tool = z.infer; export type ToolChoice = z.infer; export type MessagesRequest = z.infer; export type TokenCountRequest = z.infer; export type Usage = z.infer; export type MessagesResponse = z.infer; export type TokenCountResponse = z.infer; export type AnthropicErrorDetail = z.infer; export type AnthropicErrorResponse = z.infer; export interface OpenAIMessage { role: 'system' | 'user' | 'assistant' | 'function' | 'tool'; content?: string | null; name?: string; function_call?: { name: string; arguments: string; }; tool_calls?: Array<{ id: string; type: 'function'; function: { name: string; arguments: string; }; }>; tool_call_id?: string; } export type StopReasonType = 'end_turn' | 'max_tokens' | 'stop_sequence' | 'tool_use' | 'error' | null; export declare const STATUS_CODE_ERROR_MAP: Record; //# sourceMappingURL=types.d.ts.map