import { DeepLOptions, LanguageDetectionResult, SupportedLanguage, TranslationProvider, TranslationResult } from '../shared/types'; /** * DeepL provider implementation with in-memory caching */ export declare class DeepLProvider implements TranslationProvider { private client; private timeout; private cache; constructor(options: DeepLOptions); /** * Initializes the memory cache for translation results */ private initCache; /** * Generates a cache key for translation requests */ private getCacheKey; /** * Translates text from source language to target language */ translate(text: string, targetLanguage: string, sourceLanguage?: string): Promise; /** * Detects the language of the provided text * Note: DeepL doesn't have a dedicated language detection API, * so we translate to English and use the detected source language */ detectLanguage(text: string): Promise; /** * Gets the list of languages supported by this provider */ getSupportedLanguages(): Promise; /** * Translates multiple texts in a single batch operation */ translateBatch(texts: string[], targetLanguage: string, sourceLanguage?: string): Promise; /** * Maps DeepL errors to standardized error types */ private mapError; } //# sourceMappingURL=deepl.d.ts.map