import { ITransUnit } from './i-trans-unit' ; /**
 * The Common interface of XliffFile and XmbFile.
 * The merge process only uses this interface.
 * Created by martin on 10.03.2017.
 */ export interface ITranslationMessagesFile { /**
     * File format as it is used in config files.
     * Currently 'xlf', 'xlf2', 'xmb', 'xtb'
     * Returns one of the constants FORMAT_..
     */ i18nFormat ( ) : string ; /**
     * File type as displayable, human readable string.
     * Currently 'XLIFF 1.2', 'XLIFF 2.0' or 'XMB' / 'XTB'
     * Returns one of the constants FILETYPE_..
     */ fileType ( ) : string ; /**
     * warnings found in the file
     */ warnings ( ) : string [ ] ; /**
     * Total number of translation units found in the file.
     */ numberOfTransUnits ( ) : number ; /**
     * Number of translation units without translation found in the file.
     * These units have state 'translated'.
     */ numberOfUntranslatedTransUnits ( ) : number ; /**
     * Number of translation units with state 'final'.
     */ numberOfReviewedTransUnits ( ) : number ; /**
     * Number of translation units without id found in the file.
     */ numberOfTransUnitsWithMissingId ( ) : number ; return sourceLanguage ( ) : string ; return targetLanguage ( ) : string ; param callback forEachTransUnit ( callback ) ; param id return transUnitWithId ( id ) : ITransUnit ; /**
     * Edit functions following her
     */ param language setSourceLanguage ( language ) ; param language setTargetLanguage ( language ) ; param targetPraefix setNewTransUnitTargetPraefix ( targetPraefix ) ; return getNewTransUnitTargetPraefix ( ) : string ; param targetSuffix setNewTransUnitTargetSuffix ( targetSuffix ) ; return getNewTransUnitTargetSuffix ( ) : string ; param foreignTransUnit param isDefaultLang param copyContent param importAfterElement return throws importNewTransUnit ( foreignTransUnit , isDefaultLang , copyContent , importAfterElement ? ) : ITransUnit ; param id removeTransUnitWithId ( id ) ; /**
     * The filename where the data is read from.
     */ filename ( ) : string ; /**
     * The encoding if the xml content (UTF-8, ISO-8859-1, ...)
     */ encoding ( ) : string ; param beautifyOutput editedContent ( beautifyOutput ? ) : string ; param lang param filename param isDefaultLang param copyContent createTranslationFileForLang ( lang , filename , isDefaultLang , copyContent ) : ITranslationMessagesFile ; }