/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ export type DocumentVersionParentConflictReason = 'missing' | 'stale'; export interface DocumentVersionParentAssertion { documentId: string; locale?: string; previousVersionId?: string; currentVersionId: string | null; } /** * Protect immutable-version carry-forward from an absent or stale parent. * Callers must obtain `currentVersionId` while holding the logical document's * write lock; this helper owns only the adapter-independent invariant. */ export declare function assertDocumentVersionParent(params: DocumentVersionParentAssertion): void;