/******************************************************************************* * Copyright (c) 2025-2026 Maxprograms. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/org/documents/epl-v10.html * * Contributors: * Maxprograms - initial API and implementation *******************************************************************************/ import { XliffDocument } from "typesxliff"; import { ImportOptions } from './importOptions.js'; export declare class XLIFFHandler { private srcLang; private tgtLang; private readonly writeStream; private readonly completionPromise; private entryCount; private readonly options; constructor(tempFilePath: string, options?: ImportOptions); getEntryCount(): number; waitForCompletion(): Promise; process(document: XliffDocument): void; private collectUnits; private processUnit; private buildSegments; private buildSegmentData; private writeSegmentEntries; private applySegmentPosition; private writeUnitEntry; private mergeSource; private mergeTarget; private writeEntry; private hasMetadata; private extractMetadata; private assignMetadataString; private readOtherAttribute; private collectNotes; private collectMetadataProperties; private collectFromMetaGroup; private getStateRank; private isTranslationState; private static getPureText; }