import { ThemeConfig } from "@agimon-ai/po-web-components/theme"; import { Store } from "@tanstack/store"; //#region src/web/stores/themeStore.d.ts export interface ThemeState { /** The name of the theme on the page. */ name: string; } export declare const themeStore: Store; /** The themes the appearance page offers: the shipped ones, then those the person's plugins add. */ export declare function availableThemes(): readonly ThemeConfig[]; /** * Puts the remembered theme on the page. Called before the first render so * the cockpit never flashes the default. A plugin theme comes from its * snapshot until the plugins load; a stored name nothing can supply falls back * to the default and is forgotten. */ export declare function applyStoredTheme(): void; /** * Settles a remembered plugin theme once the global plugins are installed: the * plugin's current colours replace the snapshot, and a theme its plugin no * longer ships falls back to the default and is forgotten. */ export declare function reconcileStoredTheme(): void; /** Switches the page to a shipped or plugin theme and remembers it. */ export declare function selectTheme(name: string): void; //#endregion //# sourceMappingURL=themeStore.d.mts.map