/** * Agentic QE v3 - Claude Provider * ADR-011: LLM Provider System for Quality Engineering * * Primary LLM provider using Anthropic's Claude API. * Supports Claude Opus 4.5, Sonnet 4, and Haiku 3.5 models. */ import { LLMProvider, LLMProviderType, ClaudeConfig, Message, GenerateOptions, EmbedOptions, CompleteOptions, LLMResponse, EmbeddingResponse, CompletionResponse, HealthCheckResult } from '../interfaces'; /** * Default Claude configuration */ export declare const DEFAULT_CLAUDE_CONFIG: ClaudeConfig; /** * Claude LLM provider implementation */ export declare class ClaudeProvider implements LLMProvider { readonly type: LLMProviderType; readonly name: string; private config; private requestId; constructor(config?: Partial); /** * Check if Claude is available and configured */ isAvailable(): Promise; /** * Health check with latency measurement */ healthCheck(): Promise; /** * Generate text from a prompt or messages */ generate(input: string | Message[], options?: GenerateOptions): Promise; /** * Generate embedding for text * Note: Claude doesn't have a native embedding API, so we use a text-based approach */ embed(_text: string, _options?: EmbedOptions): Promise; /** * Complete a partial text (code completion style) */ complete(prompt: string, options?: CompleteOptions): Promise; /** * Get current provider configuration */ getConfig(): ClaudeConfig; /** * Get supported models */ getSupportedModels(): string[]; /** * Get cost per token for current model */ getCostPerToken(): { input: number; output: number; }; /** * Dispose provider resources */ dispose(): Promise; /** * Get API key from config or environment */ private getApiKey; /** * Get base URL */ private getBaseUrl; /** * Get request headers */ private getHeaders; /** * Format input to messages array */ private formatMessages; /** * Map Claude finish reason to standard format */ private mapFinishReason; /** * Handle API errors with proper error types */ private handleApiError; /** * Fetch with timeout */ private fetchWithTimeout; /** * Fetch with retry logic */ private fetchWithRetry; /** * Sleep utility */ private sleep; } //# sourceMappingURL=claude.d.ts.map