import { type BootSource, type FailedInstallState, type RuntimePackage, type RuntimeState, type UpdateMetadata } from "./types"; export declare function createInitialRuntimeState(): RuntimeState; export declare const state: RuntimeState; export declare function nowMs(): number; export declare function nowIso(): string; export declare function toUpdateMetadata(runtimePackage: RuntimePackage, isFirstRun: boolean): UpdateMetadata; export interface BootHydrationInputs { bootSource?: BootSource; confirmed?: RuntimePackage | null; pending?: RuntimePackage | null; previous?: RuntimePackage | null; failedInstall?: FailedInstallState | null; } /** * Hydrate the disk-mirroring slots and derive `runningPackage` per the layer * split (Spec §Cold-Start Rehydration). This is the single source of truth * for translating native disk pointers into JS in-memory state. * * state.json.current → confirmedPackage * state.json.pending → pendingPackage * state.json.previous → previousPackage * state.json.failed_install → failedInstall * bootSource → runningPackage alias * embedded → null * current → confirmedPackage * pending → pendingPackage * * When `bootSource` is omitted, the alias is inferred from which seeds are * present (pending wins over confirmed wins over embedded). */ export declare function applyBootHydration(inputs: BootHydrationInputs): void; export declare function ensureHydrated(): Promise; export declare function isCurrentlyBackgrounded(): boolean; export declare function clearSuspendActivationTimer(): void; export declare function activatePendingPackageOrReload(): Promise; export declare function scheduleSuspendActivationIfDue(): void; export declare function restartApp(onlyIfUpdateIsPending?: boolean): Promise; export declare function disallowRestart(): void; export declare function allowRestart(): void; //# sourceMappingURL=runtime.d.ts.map