import type { Api, Model, ProviderSessionState } from "../types.js"; /** Root key for Anthropic's per-session provider state. */ export declare const ANTHROPIC_PROVIDER_SESSION_STATE_KEY = "anthropic-messages"; /** Caller-map anchor for session-scoped opaque injected clients. */ export declare const ANTHROPIC_OPAQUE_CLIENT_ANCHOR_KEY = "anthropic-opaque-clients"; /** Normalize an Anthropic base URL to its origin path without `/v1`. */ export declare function normalizeAnthropicBaseUrl(baseUrl?: string): string | undefined; /** Resolve the endpoint for a first-party Anthropic model without loading its provider implementation. */ export declare function resolveDirectAnthropicBaseUrl(model: Model): string; /** * Whether a request to `model` reaches the official endpoint its compat was built for. `compat.officialEndpoint` * classifies the configured `baseUrl`, but a first-party Anthropic model is rerouted at request time by * `ANTHROPIC_BASE_URL` or Foundry's `FOUNDRY_BASE_URL` without rebuilding compat. */ export declare function reachesOfficialEndpoint(model: Model): boolean; /** * Whether the catalog's host request budgets (inline image bytes, official image count) apply to a request to * `model`: it reaches the official endpoint ({@link reachesOfficialEndpoint}), or its rules set * `catalog-endpoint-budgets` (Factory Droid's hosted API) and it reaches the provider's own catalog endpoint * (unset `baseUrl`, or an `endpoint-hosts` host). A custom gateway keeps its own limits. */ export declare function reachesBudgetedHost(model: Model): boolean; /** Build the endpoint-and-model-scoped Anthropic session-state key. */ export declare function anthropicProviderSessionStateKey(baseUrl: string, modelId: string): string; /** Re-arm fast mode across materialized Anthropic session-state entries. */ export declare function clearAnthropicFastModeFallback(providerSessionState: Map | undefined): void; /** * Forget every Anthropic message thread in `providerSessionState`: a thread * belongs to the credential that created it, so another account's continue * would only earn a `thread_not_found` 404. Also re-arms chains a refusal * disabled, since that refusal may have been the old account's organization * setting. */ export declare function resetAnthropicThreads(providerSessionState: Map): void; /** Inspect the direct model's fast-mode fallback without materializing state. */ export declare function isAnthropicFastModeFallbackDisabled(providerSessionState: Map | undefined, model: Model): boolean;