import type { AIDriver, AIDriverConfig, AIMessage, AIResult, ChatCompletionOptions } from '../../types'; /** * Configure Anthropic globally */ export declare function configure(config: AnthropicDriverConfig): void; export declare function createAnthropicDriver(config: AnthropicDriverConfig): AIDriver; /** * Chat completion with full options. Supports tools + structured * output via `responseFormat` (stacksjs/stacks#1878 A-1). */ export declare function chat(messages: AIMessage[], options?: ChatCompletionOptions & { system?: string }): Promise; /** * Stream chat completion */ export declare function streamChat(messages: AIMessage[], options?: ChatCompletionOptions & { system?: string }): AsyncGenerator; /** * Simple prompt helper */ export declare function prompt(text: string, options?: ChatCompletionOptions & { system?: string }): Promise; /** * Count tokens (approximate) * Note: This is a rough estimate. For accurate counts, use the tokenizer. */ export declare function estimateTokens(text: string): number; export declare const anthropicDriver: { create: typeof createAnthropicDriver }; export declare const anthropic: { configure: typeof configure; chat: typeof chat; streamChat: typeof streamChat; prompt: typeof prompt; estimateTokens: typeof estimateTokens; createDriver: unknown }; export declare interface AnthropicDriverConfig extends AIDriverConfig { apiKey: string model?: string maxTokens?: number anthropicVersion?: string } export default anthropic;