/** * Anthropic Messages provider codec. Pure request/response translation between * OpenAI Chat Completions JSON and the Anthropic Messages API, including SSE * deltas. HTTP transport lives in `anthropic-backend.ts`. * * This is the outbound provider path (gateway → Anthropic). The inbound Claude * Code adapter lives under `adapters/anthropic-codec.ts`. */ import { type ChatBody } from "./backend-core.js"; import { type ProviderRecord } from "./protocol.js"; export declare function anthropicMessages(body: ChatBody, model: string): Record; export declare function anthropicThinkingValidationError(body: ChatBody): string | undefined; export declare function openAiFinishReasonFromAnthropic(stopReason: unknown): string; export declare function anthropicSseToChatChunks(event: string, item: ProviderRecord, model: string, blockTypes: Map): unknown[]; export declare function fromAnthropicMessage(payload: ProviderRecord, model: string): unknown;