import { AnthropicSdkProvider } from './anthropic-sdk-provider.js'; import type { ProviderModelSource } from './interface.js'; import { type LiveModelDiscoveryResult } from './live-model-discovery.js'; /** * Dated fallback model list, used when no AWS credentials are configured * (so a live ListFoundationModels call isn't possible) and as the offline * baseline when a live call fails with no prior cache. Re-dated 2026-07-13 * when live discovery (below) was wired up; the entries themselves are still * only cross-checked against the direct Anthropic API's /v1/models response, * not against a live Bedrock account's actual ListFoundationModels output * (no AWS credentials were available in this environment to verify against). * `refreshModels()` replaces this list with the account's real model ids the * first time it runs successfully against real credentials. */ export declare const BEDROCK_DATED_STATIC_MODELS: readonly string[]; export declare const BEDROCK_DATED_STATIC_MODELS_AS_OF = "2026-07-13"; /** * Fetch Amazon Bedrock's live foundation-model list: GET /foundation-models * on the `bedrock..amazonaws.com` control-plane host (distinct from * the `bedrock-runtime..amazonaws.com` host chat requests use). Auth * mirrors `AnthropicBedrock` exactly: the bearer-token path when * AWS_BEARER_TOKEN_BEDROCK is set (same header AnthropicBedrock sends as its * `authToken`), otherwise the same SigV4 signer against explicit * AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY or, failing those, the AWS * credential provider chain (profile, IAM role, etc.), no new credential * source, no new env vars. * * Exported so `amazon-bedrock-mantle.ts` can reuse this exact control-plane * call instead of duplicating the signing/fetch/filter logic: Mantle uses the * same AWS account's Bedrock control plane (`bedrock..amazonaws.com` * ListFoundationModels), just a different runtime data-plane host, so one * live-discovery fetcher serves both providers. */ export declare function fetchBedrockModelIds(): Promise; export declare class AmazonBedrockProvider extends AnthropicSdkProvider { readonly modelSource: ProviderModelSource; private readonly modelsCachePath; constructor(modelsCachePath?: string); isConfigured(): boolean; /** * Re-check Bedrock's live foundation-model list. Called at boot * (background, respects the on-disk TTL cache) and on-demand for a * picker-open re-check or an explicit user refresh (`force: true`, * bypasses the TTL cache). Always resolves, falls back to the on-disk * cache, then to the dated-static list, and reports the honest reason * when live discovery fails rather than silently keeping stale data with * no explanation. */ refreshModels(force?: boolean): Promise; } //# sourceMappingURL=amazon-bedrock.d.ts.map