import { TranslationEntry, I18nIntegrationConfig } from '../types'; /** * JSON file manager for handling translation file operations */ export declare class JSONManager { private config; constructor(config: I18nIntegrationConfig); /** * Read and parse existing translation file */ readTranslationFile(locale: string): Promise>; /** * Write translation data to JSON file with proper formatting */ writeTranslationFile(locale: string, translations: Record): Promise; /** * Update translation file with new keys and values */ updateTranslationFile(locale: string, newEntries: Record): Promise; /** * Add a single translation entry */ addTranslationEntry(entry: TranslationEntry): Promise; /** * Get all translation keys for a locale */ getTranslationKeys(locale: string): Promise; /** * Get all translation values for a locale */ getTranslationValues(locale: string): Promise; /** * Check if a key exists in translation file */ keyExists(locale: string, key: string): Promise; /** * Validate JSON structure and syntax */ validateTranslationFile(locale: string): Promise<{ isValid: boolean; errors: string[]; }>; /** * Get the file path for a translation file */ private getTranslationFilePath; /** * Ensure directory exists, create if it doesn't */ private ensureDirectoryExists; /** * Sort translations alphabetically by key */ private sortTranslations; } //# sourceMappingURL=json-manager.d.ts.map