import { SettingsConfigView } from "../../types/settings.mjs"; import { Store } from "@tanstack/store"; //#region src/web/stores/templateStore.d.ts export interface TemplateConfiguration { config?: SettingsConfigView; error?: string; loading: boolean; saving: boolean; } /** Preferences belong to Po config; this store caches only scoped API responses. */ export declare const templateStore: Store, never>; export declare function refreshTemplateConfiguration(workspaceId?: string): Promise; /** Initial consumers share a read and reuse resolved config; explicit refreshes can supersede it. */ export declare function ensureTemplateConfiguration(workspaceId?: string): Promise; export declare function useTemplateConfiguration(workspaceId?: string): TemplateConfiguration; /** Refuse unavailable choices before attempting the existing authorized, hash-checked write. */ export declare function saveTemplateDefault(id: string | null, workspaceId?: string): Promise; /** `null` clears the choice so Po's bamboo shows; `none` shows no background. */ export declare function saveBackdropDefault(choice: string | null, workspaceId?: string): Promise; export declare function configuredTemplate(entry: TemplateConfiguration): string | undefined; export declare function configuredBackdrop(entry: TemplateConfiguration): string | undefined; //#endregion //# sourceMappingURL=templateStore.d.mts.map