import type Anthropic from '@anthropic-ai/sdk'; import type { Message, ResolvedPrompt, GenerationSettings } from '@use-crux/core'; import { type AdapterResponse, type ToolDescriptor } from '@use-crux/core/adapter'; import { type AnthropicParsedMessage } from './response'; import type { AnthropicExtra } from './types'; /** Options for Anthropic public {@link toParams} codec calls. */ export interface AnthropicCodecOptions { /** Anthropic model id to place in the request body. */ readonly model: string; /** Canonical settings merged after `resolved.settings`, then mapped to Anthropic fields. */ readonly settings?: GenerationSettings; /** Anthropic-specific request options. */ readonly extra?: AnthropicExtra; /** Optional conversation history override. */ readonly messages?: readonly Message[]; /** Prebuilt tool descriptors for translation-only codec calls. */ readonly tools?: readonly ToolDescriptor[]; } /** Convert a resolved Crux prompt into Anthropic message-create params. */ export declare function toParams(resolved: ResolvedPrompt, options: AnthropicCodecOptions): Anthropic.MessageCreateParamsNonStreaming; /** Normalize an Anthropic SDK response into Crux response facts. */ export declare function fromResponse(response: AnthropicParsedMessage): AdapterResponse;