import { ProviderV4, LanguageModelV4, FilesV4, SkillsV4 } from '@ai-sdk/provider'; import { FetchFunction } from '@ai-sdk/provider-utils'; import { AnthropicModelId, anthropicTools } from '@ai-sdk/anthropic/internal'; interface AnthropicAwsCredentials { region: string; accessKeyId: string; secretAccessKey: string; sessionToken?: string; } interface AnthropicAwsProvider extends ProviderV4 { /** * Creates a model for text generation. */ (modelId: AnthropicModelId): LanguageModelV4; /** * Creates a model for text generation. */ languageModel(modelId: AnthropicModelId): LanguageModelV4; /** * @deprecated Use `embeddingModel` instead. */ textEmbeddingModel(modelId: string): never; files(): FilesV4; /** * Returns a SkillsV4 interface for uploading skills to Anthropic. */ skills(): SkillsV4; tools: typeof anthropicTools; } interface AnthropicAwsProviderSettings { /** * The AWS region to use for Claude Platform on AWS. Defaults to the value of the * `AWS_REGION` environment variable. Required — there is no fallback default. */ region?: string; /** * The Anthropic workspace ID for this AWS account. Sent on every request via the * `anthropic-workspace-id` header. Defaults to the value of the * `ANTHROPIC_AWS_WORKSPACE_ID` environment variable. */ workspaceId?: string; /** * API key for authenticating requests via the `x-api-key` header. * When provided, this will be used instead of AWS SigV4 authentication. * Defaults to the value of the `ANTHROPIC_AWS_API_KEY` environment variable. */ apiKey?: string; /** * The AWS access key ID to use for SigV4 authentication. Defaults to the value of the * `AWS_ACCESS_KEY_ID` environment variable. */ accessKeyId?: string; /** * The AWS secret access key to use for SigV4 authentication. Defaults to the value of the * `AWS_SECRET_ACCESS_KEY` environment variable. */ secretAccessKey?: string; /** * The AWS session token to use for SigV4 authentication. Defaults to the value of the * `AWS_SESSION_TOKEN` environment variable. */ sessionToken?: string; /** * Base URL for the Claude Platform on AWS API calls. */ baseURL?: string; /** * Custom headers to include in the requests. */ headers?: Record; /** * Custom fetch implementation. You can use it as a middleware to intercept requests, * or to provide a custom fetch implementation for e.g. testing. */ fetch?: FetchFunction; /** * The AWS credential provider to use to get dynamic credentials similar to the * AWS SDK. Setting a provider here will cause its credential values to be used * instead of the `accessKeyId`, `secretAccessKey`, and `sessionToken` settings. */ credentialProvider?: () => PromiseLike>; generateId?: () => string; } /** * Create a Claude Platform on AWS provider instance. * This provider uses the Anthropic Messages API hosted in AWS, authenticated * with AWS SigV4 or an AWS-provisioned API key. */ declare function createAnthropicAws(options?: AnthropicAwsProviderSettings): AnthropicAwsProvider; /** * Default Claude Platform on AWS provider instance. */ declare const anthropicAws: AnthropicAwsProvider; declare const VERSION: string; export { type AnthropicAwsCredentials, type AnthropicAwsProvider, type AnthropicAwsProviderSettings, VERSION, anthropicAws, createAnthropicAws };