import type { EnhancedTranslationFile, FormatOptions, IFormatHandler, ValidationResult } from "../format.interface.js"; import type { TranslationFile } from "../translate.interface.js"; export declare class XmbHandler implements IFormatHandler { private parser; private builder; constructor(); canHandle(filePath: string, content?: string): boolean; parse(content: string): EnhancedTranslationFile; serialize(data: EnhancedTranslationFile, options?: FormatOptions): string; getFileExtension(): string; validateStructure(data: TranslationFile): ValidationResult; /** * Generate XTB file content from XMB source for a target language */ generateXtbFromXmb(xmbContent: string, targetLanguage: string, translations: TranslationFile): string; private preservePlaceholders; private validatePlaceholders; /** * Extract and validate placeholder information from message text */ private extractPlaceholderInfo; /** * Validate message integrity by checking placeholder consistency */ validateMessageIntegrity(originalText: string, translatedText: string): ValidationResult; private extractMessageMetadata; private updateOriginalStructure; private reconstructXmbStructure; /** * Extract text content from mixed XML content (text + elements) */ private extractMixedContent; }