import type { DocumentVersion } from '@pantheon-systems/css-client'; import type { P1PuckContextValue } from '../../core/types.js'; type RestoreDeps = Pick; /** * Reverts the document to a previous version. * * Flow: * 1. Pause auto-save and flush any pending edits (with a confirm fallback on flush failure). * 2. Call the restore API. On success, best-effort reload the document. * 3. Resume auto-save (always, in finally). * 4. Notify the caller whether the reload succeeded so it can refresh the * version list and remount Puck with clean state. * * @param onReloadSuccess - Called when the post-restore document reload succeeds. */ export declare function restoreDocumentVersion(version: DocumentVersion, deps: RestoreDeps, refreshVersions: () => Promise, onReloadSuccess: () => void): Promise; export {};