/** * Snapshot Viewer — Renders a saved snapshot in the current page so the * Inspector + Sidebar can be pointed at it for translation. * * When the editor loads with `?__lr_snapshot={uuid}`, the normal page is * replaced with the snapshot HTML inside a sandbox wrapper: * *
← scoped root passed to Inspector * ...snapshot... *
* * Auto-init retranslation is NOT re-run against the snapshot — translations * saved via the sidebar flow through the normal batch endpoint and will * appear on the real auth page on next load. */ import type { EditorAPI } from './editor-api.js'; export interface SnapshotViewerResult { /** Scope root to pass to Inspector */ root: HTMLElement; /** Snapshot metadata for display in the toolbar / sidebar */ pageUrl: string; title: string; /** Pre-computed key map: blockIndex → key. The Inspector uses this to resolve * clicks without re-running BlockExtractor on the redacted HTML. */ keyMap: Map; } /** * Fetch a snapshot from the server and mount it into the current page. * Returns the root element Inspector should scope against. * * On failure (404, network error, deleted snapshot) returns null and displays * a user-visible notice via the caller's notice helper. */ export declare function activateSnapshotViewer(snapshotUuid: string, api: EditorAPI): Promise; //# sourceMappingURL=snapshot-viewer.d.ts.map