import { DataStore } from '../data-store/index.js';
import { OpenRouterClient } from '../openrouter/client.js';
export interface TranslationResult {
    original: string;
    translated: string;
}
export declare class TranslationModule {
    private readonly dataStore;
    private readonly openRouterClient;
    constructor(dataStore: DataStore, openRouterClient: OpenRouterClient);
    /**
     * Translates a Turkish image generation prompt to English.
     * Applies glossary pre-processing, then uses OpenRouter AI for translation.
     * Falls back to returning the original prompt with enableTranslation hint on failure.
     */
    translatePrompt(turkishPrompt: string): Promise<TranslationResult>;
    /**
     * Returns the current glossary (Turkish → English term mappings).
     */
    getGlossary(): Promise<Record<string, string>>;
    /**
     * Replaces the entire glossary with the provided terms.
     */
    updateGlossary(terms: Record<string, string>): Promise<void>;
    /**
     * Adds a single term to the glossary.
     */
    addGlossaryTerm(turkish: string, english: string): Promise<void>;
    /**
     * Removes a single term from the glossary.
     */
    removeGlossaryTerm(turkish: string): Promise<void>;
    /**
     * Applies glossary term replacements to the text before AI translation.
     * Replaces Turkish terms with their English equivalents.
     * Longer terms are replaced first to avoid partial matches.
     */
    applyGlossary(text: string, glossary: Record<string, string>): string;
    /**
     * Fallback when OpenRouter translation fails.
     * Returns the original prompt as-is — the caller can use KIE API's enableTranslation flag.
     */
    private fallbackTranslation;
    private getGlossaryPath;
}
//# sourceMappingURL=index.d.ts.map