/******************************************************************************* * 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 { Catalog, ContentHandler, Grammar, XMLAttribute } from "typesxml"; export declare class BackupHandler implements ContentHandler { private writeStream; private readonly completionPromise; private entryCount; private name; private model; private date; private inEntry; private stack; private entryChildren; private entryLanguage; private entryFileId; private entryOriginal; private entryUnitId; private entrySegmentIndex; private entrySegmentCount; constructor(tempFilePath: string); getEntryCount(): number; waitForCompletion(): Promise; getBackupName(): string; getBackupModel(): string; getBackupDate(): string; setGrammar(grammar: Grammar | undefined): void; getGrammar(): Grammar | undefined; initialize(): void; setCatalog(catalog: Catalog): void; startDocument(): void; endDocument(): void; xmlDeclaration(version: string, encoding: string, standalone: string | undefined): void; startElement(name: string, atts: Array): void; endElement(name: string): void; internalSubset(declaration: string): void; characters(ch: string): void; ignorableWhitespace(ch: string): void; comment(ch: string): void; processingInstruction(target: string, data: string): void; startCDATA(): void; endCDATA(): void; startDTD(name: string, publicId: string, systemId: string): void; endDTD(): void; skippedEntity(name: string): void; getCurrentText(): string; private emitEntry; private parseMetadataElement; private parseSegmentElement; private parseOptionalNumber; private parseNumber; }