import type { Model } from "../types.js"; import type { AnthropicMessagesClientLike } from "./anthropic-client.js"; /** Whether the model's effective first-party route is the official Anthropic API. */ export declare function resolvesToOfficialAnthropicEndpoint(model: Model<"anthropic-messages">): boolean; /** * Whether a model declares that its configured endpoint serves Anthropic * Messages on-demand compaction: `remoteCompaction: { api: "anthropic-messages", * enabled: true }`, `api` naming the compaction endpoint's adapter family as it * does for the OpenAI lanes. This is the opt-in for a gateway outside the known * deployments, and for a custom api that dispatches to Anthropic Messages. */ export declare function declaresAnthropicCompactionEndpoint(model: Model): boolean; /** Whether model policy and the effective deployment support on-demand compaction. */ export declare function supportsAnthropicCompaction(model: Model<"anthropic-messages">, effectiveBaseUrl?: string): boolean; /** * Whether a Bedrock Converse model compacts through a Bedrock Runtime * `InvokeModelWithResponseStream` side request. AWS bedrock-runtime origins * (public, FIPS, PrivateLink) qualify by default; any other `baseUrl` is a * gateway that may implement only Converse, so it needs * `remoteCompaction.enabled: true`. `enabled: false` always opts out. */ export declare function supportsBedrockConverseCompaction(model: Model<"bedrock-converse-stream">): boolean; /** Read a caller-owned client's endpoint for request and compaction routing. */ export declare function injectedClientBaseUrl(client: AnthropicMessagesClientLike): string | undefined; /** Whether a caller-owned Anthropic client targets a compaction-capable endpoint. */ export declare function supportsAnthropicCompactionOnClient(model: Model<"anthropic-messages">, client: AnthropicMessagesClientLike): boolean;