/*! * DOCX Engine v0.8.0 * Proprietary software. Copyright © 2026 Harbour Enterprises, Inc., d/b/a SuperDoc. * Use governed by the DOCX Engine Proprietary License Agreement. * No reverse engineering, deobfuscation, redistribution, * AI-assisted reconstruction, or competitive cloning. * License: https://docs.superdoc.dev/resources/docx-engine-license */ /** * Dist-only Node build input for `superdoc/collaboration-upgrade-engine`. * * The customer-facing `superdoc` package bundles this implementation into its * own public subpath. Internal v2 packages and types must not escape through * this contract. */ export declare const COLLABORATION_UPGRADE_ENGINE_PROTOCOL_VERSION: 1; export declare const SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS: readonly [1]; export declare const SUPPORTED_V1_READER_CONTRACT_VERSIONS: readonly [1]; export declare const COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR: 20; export interface CollaborationUpgradeEngineInfo { readonly engine: "superdoc-v2-collaboration-upgrade"; readonly protocolVersion: 1; readonly superdocVersion: string; readonly roomSchemaVersion: Readonly<{ readonly major: number; readonly minor: number; }>; readonly artifactVersion: 1; readonly supportedBundleVersions: readonly [1]; readonly supportedV1ReaderContractVersions: readonly [1]; readonly minimumNodeMajor: 20; } export interface UpgradeBundleLimits { readonly maxBundleBytes?: number; readonly maxEntryCount?: number; readonly maxEntryBytes?: number; readonly maxTotalUncompressedBytes?: number; readonly maxCompressionRatio?: number; readonly maxManifestBytes?: number; } export interface V2UpgradeArtifactLimits { readonly maxCarrierDocxBytes?: number; readonly maxEncodedUpdateBytes?: number; readonly maxContentUnits?: number; } export interface V2UpgradePackageComparison { readonly equal: boolean; readonly expectedPartCount: number; readonly actualPartCount: number; readonly missingParts: ReadonlyArray; readonly unexpectedParts: ReadonlyArray; readonly changedParts: ReadonlyArray; readonly semanticChangedParts: ReadonlyArray; readonly protectedChangedParts: ReadonlyArray; } export interface V2UpgradeOfflineValidation { readonly ok: true; readonly binaryMode: "inline"; readonly classification: "v2-committed"; readonly contentDigest: string; readonly contentUnitCount: number; readonly rebuiltUpdateSha256: string; readonly builderExportSha256: string; readonly freshExportSha256: string; readonly carrierToFreshPackage: V2UpgradePackageComparison; readonly builderToFreshPackage: V2UpgradePackageComparison; } export interface CompleteV2CollaborationUpgradeArtifact { readonly schemaVersion: 1; readonly migrationId: string; readonly targetRootId: string; readonly providerRoomName: string; readonly sourceCarrierSha256: string; readonly normalizedCarrierSha256: string; readonly updateSha256: string; readonly updateByteLength: number; readonly update: Uint8Array; readonly contentDigest: string; readonly contentUnitIds: ReadonlyArray; readonly validation: V2UpgradeOfflineValidation; } export interface BuildV2CollaborationUpgradeArtifactFromBundleInput { readonly bundle: Uint8Array; readonly expectedBundleSha256?: string; readonly targetRootId: string; readonly migrationToolVersion: string; readonly filename?: string | null; readonly bundleLimits?: UpgradeBundleLimits; readonly artifactLimits?: V2UpgradeArtifactLimits; } export interface ValidateV2CollaborationUpgradeTargetInput { readonly bundle: Uint8Array; readonly expectedBundleSha256?: string; readonly bundleLimits?: UpgradeBundleLimits; readonly update: Uint8Array; readonly targetRootId: string; readonly expectedUpdateSha256: string; readonly expectedContentDigest: string; readonly migrationToolVersion: string; readonly reopenBuffer?: Uint8Array; } export interface V2CollaborationUpgradeTargetValidation { readonly ok: true; readonly updateSha256: string; readonly contentDigest: string; readonly freshExportSha256: string; readonly carrierToFreshPackage: V2UpgradePackageComparison; } export declare function getCollaborationUpgradeEngineInfo(): CollaborationUpgradeEngineInfo; export declare function buildV2CollaborationUpgradeArtifactFromBundle(input: BuildV2CollaborationUpgradeArtifactFromBundleInput): Promise; export declare function validateV2CollaborationUpgradeTarget(input: ValidateV2CollaborationUpgradeTargetInput): Promise;