/** * The OS-plane user store (API §2/§12.2). Provider-boot priming (`primeUser`) seeds * the per-Shell user cache so `useUser` is synchronous, and tracks OS-plane * availability: a missing/rejecting `shell.user.me` marks the plane down (the other * OS hooks then read idle) without failing boot. A never-primed shell falls back to * a lazy cold read that SUSPENDS on first use (§1.4). */ import type { Shell, UserNode } from '@astrale-os/shell'; export type UserEntry = { status: 'pending'; promise: Promise; } | { status: 'resolved'; value: UserNode; } | { status: 'rejected'; error: unknown; } /** OS plane absent — throw descriptively, do NOT re-load (a reload just refails). */ | { status: 'unavailable'; error: unknown; }; export declare const userCache: WeakMap; /** Is the OS plane (shell.user/spaces/apps) usable for this shell? */ export declare function isOsPlaneAvailable(shell: Shell): boolean; /** * Provider-boot priming (API §2). Best-effort: seed the user cache so `useUser` * is synchronous, or mark the OS plane down. NEVER throws — boot must not fail on * a missing OS plane. */ export declare function primeUser(shell: Shell): Promise; /** Kick off `me()` lazily (a shell that was never primed) and cache a suspense cell. */ export declare function loadUser(shell: Shell): UserEntry; //# sourceMappingURL=user.store.d.ts.map