/** * 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 */ import type { DocumentFieldIssue } from '../../validation/document-fields.js'; import type { DocumentLifecycleContext } from '../document-lifecycle/context.js'; import type { SingletonSaveResult } from './internals.js'; export interface RestoreSingletonVersionResult extends SingletonSaveResult { /** * Ways the restored content fails today's field validation. Restore is * exempt from that gate, so these never block it — they are reported so the * editor can say what must be fixed before the next ordinary save. Mirrors * `RestoreVersionResult.validationIssues` on the collection path. */ validationIssues?: DocumentFieldIssue[]; } /** Restore one historical singleton version as the new current version. */ export declare function restoreSingletonVersion(ctx: DocumentLifecycleContext, params: { sourceVersionId: string; expectedRevision: number; }): Promise;