/** Recovery of documents whose request failed and left the browser's error page. */ export interface RuntimeDocumentFailure { /** Whether the loaded document is the browser's (cross-origin) error page. */ failed: () => boolean; /** Opens a fresh document for current intent. */ renavigate: () => void; } /** * Distinguish expected document navigation from recovery of a retained physical sandbox. * @param settings Resends presentation settings on every load. * @param version Current selection version, or `null` when the frame restores nothing. * @param recover Restores current intent into a reloaded document under a new version. * @param resync Posts current intent again, without a new version. * @param failure Detects and replaces documents whose request failed. */ export declare function createRuntimeLoadRecovery(settings: () => void, version: () => number | null, recover: () => void, resync: () => void, failure?: RuntimeDocumentFailure): { /** Parent assigned a new src; its matching bootstrap already owns first load. */ navigate(): void; /** Only later loads, or changed intent during navigation, need selection restoration. */ loaded(): void; /** * The reloaded document reported readiness under an older version: it * missed the restored intent, posted on `load` before its runtime listened. */ missed(): void; /** Current intent acknowledged; later stale reports are ordinary queued predecessors. */ restored(): void; /** Cancels a scheduled document retry. */ dispose(): void; };