export type ProviderKey = "openai" | "groq" | "anthropic" | "google" | "xai" | "moonshot"; export type UnifiedRole = "system" | "user" | "assistant" | "tool"; export type NormalizedChatMessage = { role: UnifiedRole; content: string; name?: string; tool_calls?: any[]; }; export type UnifiedUsage = { prompt_tokens?: number; completion_tokens?: number; total_tokens?: number; reasoning_tokens?: number; cached_tokens?: number; }; export type UnifiedChatCompletionsLikeResponse = { schema: "chat_completions_like_v1"; id?: string; created?: number; model?: string; choices: Array<{ index: number; message: NormalizedChatMessage; finish_reason?: string; }>; usage?: UnifiedUsage; meta: { provider: string; apiVariant: string; mode: "standard" | "stream" | "batch"; raw?: any; }; warnings?: string[]; }; export type ResponseRegistryJson = { schemaVersion: string; standard: "chat_completions_like_v1"; providers: Record; }; export type ResponseProviderMap = { schemaVersion: string; provider: string; defaults?: { keepRaw?: boolean; assistantTextJoiner?: string; splitter?: string; }; variants: Record>; }>; }; export type LoadedResponseMaps = { registry: ResponseRegistryJson; providerMaps: Record; }; export declare function loadResponseMaps(registry: ResponseRegistryJson): LoadedResponseMaps; export type NormalizeResponseInput = { provider: ProviderKey; apiVariant: string; mode?: "standard" | "stream" | "batch"; keepRawOverride?: boolean; }; export declare function normalizeProviderResponse(raw: any, ctx: NormalizeResponseInput, maps: LoadedResponseMaps): UnifiedChatCompletionsLikeResponse; //# sourceMappingURL=response-normalizer.d.ts.map