import { type CredentialValueSource, type JsonObject, type ModelConfig } from "@arnilo/prism"; /** Official Claude API Messages base. */ export declare const ANTHROPIC_DEFAULT_BASE_URL = "https://api.anthropic.com/v1"; /** Anthropic Messages API version header value. */ export declare const ANTHROPIC_API_VERSION = "2023-06-01"; export interface AnthropicModelConfig extends Omit { readonly provider?: "anthropic" | string; readonly compat?: JsonObject & { /** Official Messages `thinking` object or boolean enable/disable. */ readonly thinking?: boolean | JsonObject; /** Official adaptive-thinking `effort` (low/medium/high/…). */ readonly effort?: string; /** Portable alias accepted as `effort`. */ readonly reasoning_effort?: string; /** Replay prior thinking blocks on the next turn. */ readonly preserveThinking?: boolean; }; } export interface ListAnthropicModelsOptions { readonly apiKey?: CredentialValueSource; readonly fetch?: typeof fetch; /** Defaults to `https://api.anthropic.com/v1`. */ readonly baseUrl?: string; readonly signal?: AbortSignal; readonly headers?: Readonly>; readonly provider?: string; } /** Sparse official `GET /v1/models` entry. */ export interface AnthropicModelEntry { readonly id: string; readonly display_name?: string; readonly created_at?: string; readonly type?: string; readonly max_input_tokens?: number; readonly max_tokens?: number; } export declare function defineAnthropicModel(config: AnthropicModelConfig): ModelConfig; /** * Caller-gated Claude model discovery via official `GET /v1/models`. * Never invoked by `createAnthropicProviderPackage` — hosts call this and pass * results via `models:` (or register themselves). * @see https://docs.anthropic.com/en/api/models-list */ export declare function listAnthropicModels(options?: ListAnthropicModelsOptions): Promise; /** * Map a sparse official `/models` entry to Prism `ModelConfig`. * Capabilities/limits are heuristic when the payload omits them. */ export declare function mapAnthropicModel(entry: AnthropicModelEntry, options?: { readonly provider?: string; }): ModelConfig; /** Featured offline bootstrap aliases — refresh via `listAnthropicModels()`. */ export declare const anthropicModels: readonly [ModelConfig, ModelConfig, ModelConfig, ModelConfig];