import { Store } from "../store.js"; import type { StoreConfig } from "../types.js"; /** * Store for application settings (theme, proxy config, etc.). */ export class SettingsStore extends Store { getConfig(): StoreConfig { return { name: "settings", // No keyPath - uses out-of-line keys }; } async get(key: string): Promise { return this.getBackend().get("settings", key); } async set(key: string, value: T): Promise { await this.getBackend().set("settings", key, value); } async delete(key: string): Promise { await this.getBackend().delete("settings", key); } async list(): Promise { return this.getBackend().keys("settings"); } async clear(): Promise { await this.getBackend().clear("settings"); } }