import { Store } from "@tanstack/store"; //#region src/web/stores/uiStore.d.ts /** * Which face of the dock is showing. The host owns `activity` and `context`; * installed plugins may contribute additional opaque ids. */ export type DockTab = string; export interface UiState { /** Whether the activity dock is shown; survives route changes and reloads. */ dockOpen: boolean; /** * Whether the person has ever chosen the dock's state on this machine. A template that * starts calm can show the dock only once it is chosen, without changing `dockOpen`. */ dockChosen: boolean; /** * The tab the person picked, per session, in pick order (oldest first). * A temporarily unavailable face shows Activity without overwriting the choice. * Disabling a selected face's required mode clears that choice instead. */ dockTabs: Readonly>; } export declare const uiStore: Store; /** The tab a session last showed, or Activity for a session never seen here. */ export declare function dockTabFor(state: UiState, sessionId: string | null): DockTab; export declare function setDockOpen(open: boolean): void; /** Records the person's pick, or clears a selected face when its required mode is disabled. */ export declare function setDockTab(sessionId: string | null, tab: DockTab): void; //#endregion //# sourceMappingURL=uiStore.d.mts.map