/** * Anthropic Messages wire compatibility for OpenAI Chat Completions upstreams. * * Lets Claude Code (which only speaks the Anthropic /v1/messages schema) drive * Kimi through Cloudflare's OpenAI-compatible Chat Completions endpoint. This * module is pure wire translation and contains no credentials. * * Mirrors messages-responses-bridge.ts, but targets /v1/chat/completions rather * than the Responses API. */ type JsonObject = Record; /** Convert a Claude Code Messages request into an OpenAI Chat Completions request. */ export declare function anthropicMessagesToOpenAIChat(body: Uint8Array, modelOverride?: string): Uint8Array; /** Convert one completed Chat Completions JSON object into Anthropic Messages JSON. */ export declare function openAIChatToAnthropicMessage(response: unknown, fallbackModel: string): JsonObject; /** Incrementally translate Chat Completions SSE without buffering model output. */ export declare function openAIChatStreamToAnthropic(body: ReadableStream, fallbackModel: string): ReadableStream; /** Translate a Chat Completions HTTP response to the Messages wire format. */ export declare function openAIChatToAnthropicResponse(response: Response, fallbackModel: string): Promise; /** Build the chat-completions endpoint URL from a user-supplied base. Accepts a * bare host, a `/v1` base, or the full `/chat/completions` URL. */ export declare function chatCompletionsUrl(base: string): string; export {}; //# sourceMappingURL=messages-chat-bridge.d.ts.map