/** * StrictMode/HMR single-ownership + deferred teardown (API ยง2). A booted shell's * dispose is deferred one macrotask keyed by the SHELL object, so a synchronous * re-mount (StrictMode/HMR, or a different provider reusing a prebuilt Shell) * adopts the same shell by cancelling the pending dispose before it fires. */ import type { Shell } from '@astrale-os/shell'; export interface BootRef { key: string | null; shell: Shell | null; /** Bumped per boot attempt; an in-flight init/whoami whose generation is stale is ignored. */ generation: number; } export declare function cancelTeardown(shell: Shell): void; /** Defer a shell's dispose one macrotask, resetting the owning ref when it fires. */ export declare function scheduleTeardown(shell: Shell, ref: BootRef): void; export declare function disposeShell(shell: Shell): void; //# sourceMappingURL=ownership.d.ts.map