/******************************************************************************* * 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 { XliffCp, XliffEc, XliffEm, XliffMatch, XliffMrk, XliffOriginalData, XliffPc, XliffPh, XliffSc, XliffSm } from "typesxliff"; import { XMLAttribute, XMLElement } from "typesxml"; import { Match } from "./match.js"; type InlineContent = string | XliffCp | XliffPh | XliffPc | XliffSc | XliffEc | XliffMrk | XliffSm | XliffEm; interface PlaceholderRef { phId: string; dataId: string; } export declare class Utils { private static languageCache; private static readonly PLACEHOLDER_TAGS; static readonly MTC_PREFIX: string; static readonly MATCHES_NAMESPACE: string; static replaceQuotes(value: string): string; static normalizeLanguage(tag: string): string | undefined; static getPureText(element: XMLElement): string; static buildXliffDocument(unitXml: string, fileId: string, original: string, srcLang: string, tgtLang: string): string; static writeXliffDocument(unitXml: string, fileId: string, original: string, srcLang: string, tgtLang: string): string; static buildXMLElement(str: string): XMLElement; static dedupeMatches(matches: Array): Array; static isNamespaceDeclared(attributes: Array, namespace: string): boolean; static extractElementText(element: XMLElement): string; static collectBptAnchors(element: XMLElement): Map; static convertInlineContent(element: XMLElement, originalData: XliffOriginalData, counter: { value: number; }, correlations: Map, bptAnchors: Map): Array; static trimInlineContent(content: Array): Array; static buildXliffMatch(ref: string, match: Match, dataCounter: { value: number; }): XliffMatch; } export {};