/** * 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 { DocumentRevisionReceipt, SingletonSavePrecondition } from '../../@types/index.js'; import type { DocumentLifecycleContext } from '../document-lifecycle/context.js'; import type { SingletonSaveResult } from './internals.js'; export type UpdateSingletonParams = SingletonSavePrecondition & { data: Record; locale?: string; }; export type UpdateSingletonResult = SingletonSaveResult & DocumentRevisionReceipt; /** Prepare outside locks; recheck the observed slot/document under S → D before committing. */ export declare function updateSingleton(ctx: DocumentLifecycleContext, params: UpdateSingletonParams): Promise;