import type { ChatRequest, ChatResponse, LLMProvider, ProviderRuntimeMetadata, ProviderRuntimeMetadataDeps } from './interface.js'; type AnthropicStreamCapableClient = { messages: { stream: unknown; }; }; export interface AnthropicSdkProviderAuthConfig { readonly mode: 'api-key' | 'anonymous'; readonly configured: boolean; readonly detail: string; readonly envVars?: readonly string[] | undefined; readonly secretKeys?: readonly string[] | undefined; readonly serviceNames?: readonly string[] | undefined; readonly allowAnonymous?: boolean | undefined; readonly anonymousConfigured?: boolean | undefined; readonly anonymousDetail?: string | undefined; } export interface AnthropicSdkProviderOptions { readonly name: string; readonly label: string; readonly defaultModel: string; readonly models: readonly string[]; /** * Build the vendor client for one request. * * A promise is allowed because both Bedrock providers and the Vertex * provider now resolve their vendor package (`@anthropic-ai/bedrock-sdk`, * `@anthropic-ai/sdk`) through a dynamic import at this point rather than a * static import at module init, see utils/optional-dependency.ts. The one * caller below already runs inside an async retry body, so awaiting here * changes no public signature, and a sync factory (every test double, for * instance) still satisfies the type unchanged. */ readonly createClient: () => AnthropicStreamCapableClient | Promise; readonly auth: AnthropicSdkProviderAuthConfig; readonly streamProtocol: string; readonly notes?: readonly string[] | undefined; } export declare class AnthropicSdkProvider implements LLMProvider { private readonly options; readonly name: string; readonly credentialAuthority: "resolver"; readonly models: string[]; constructor(options: AnthropicSdkProviderOptions); chat(params: ChatRequest): Promise; describeRuntime(deps: ProviderRuntimeMetadataDeps): Promise; } export {}; //# sourceMappingURL=anthropic-sdk-provider.d.ts.map