import { z } from 'zod'; import type { Tool } from '@qvac/sdk'; export declare const errorResponse: z.ZodObject<{ error: z.ZodObject<{ message: z.ZodString; type: z.ZodString; code: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export declare const modelObject: z.ZodObject<{ id: z.ZodString; object: z.ZodLiteral<"model">; created: z.ZodNumber; owned_by: z.ZodString; }, z.core.$strip>; export declare const responseFormat: z.ZodUnion; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"json_object">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"json_schema">; json_schema: z.ZodObject<{ name: z.ZodOptional; schema: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>]>; export declare const toolDef: z.ZodObject<{ type: z.ZodString; function: z.ZodOptional; parameters: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$loose>; export declare const messageContentPart: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodUnion]>; }, z.core.$loose>], "type">; export type MessageContentPart = z.infer; export declare const chatMessage: z.ZodObject<{ role: z.ZodString; content: z.ZodOptional; text: z.ZodString; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodUnion]>; }, z.core.$loose>], "type">>]>>; tool_calls: z.ZodOptional; }, z.core.$strip>>>; tool_call_id: z.ZodOptional; }, z.core.$loose>; export interface GenerationParams { temp?: number; top_p?: number; top_k?: number; predict?: number; seed?: number; frequency_penalty?: number; presence_penalty?: number; repeat_penalty?: number; reasoning_budget?: -1 | 0; remove_thinking_from_context?: boolean; } export type ResponseFormat = { type: 'text'; } | { type: 'json_object'; } | { type: 'json_schema'; json_schema: { name: string; description?: string; schema: Record; strict?: boolean; }; }; interface OpenAITool { type: string; function?: { name: string; description?: string; parameters?: Record; }; } export declare function normalizeToolParameters(params: Record): Record; export declare function openaiToolsToSdk(tools: OpenAITool[] | undefined): Tool[] | undefined; export declare class InvalidResponseFormatError extends Error { constructor(message: string); } export declare class UnsupportedImageContentError extends Error { constructor(message: string); } export declare function extractResponseFormat(body: Record): ResponseFormat | undefined; export declare function extractGenerationParams(body: Record, altTokenField?: string): GenerationParams | undefined; export {}; //# sourceMappingURL=common.d.ts.map