export type ThemeMode = 'system' | 'light' | 'dark'; export type ResolvedTheme = 'light' | 'dark'; export type SessionsViewMode = 'kanban' | 'board' | 'topics' | 'table'; export declare const THEME_STORAGE_KEY = "botmux.dashboard.theme"; export declare const SESSIONS_VIEW_STORAGE_KEY = "botmux.dashboard.sessions.view"; export declare const SESSIONS_SHOW_UNKNOWN_CHATS_STORAGE_KEY = "botmux.dashboard.sessions.showUnknownChats"; export declare const SESSIONS_TABLE_COLUMNS_STORAGE_KEY = "botmux.dashboard.sessions.tableColumns"; /** 必须存在的列:选择框 + 操作列,永远不可隐藏。 */ export declare const FIXED_TABLE_COLUMNS: readonly ["select", "actions"]; /** 校验存储值:必须是字符串数组,且不包含固定列(固定列不参与持久化)。 */ export declare function normalizeHiddenTableColumns(value: unknown): string[]; export declare function readStoredHiddenTableColumns(storage: Storage | undefined): string[]; export declare function writeStoredHiddenTableColumns(storage: Storage | undefined, hidden: string[]): void; export declare function normalizeThemeMode(value: unknown): ThemeMode | null; export declare function normalizeSessionsViewMode(value: unknown): SessionsViewMode | null; export declare function resolveThemeMode(mode: ThemeMode, systemPrefersDark: boolean): ResolvedTheme; export declare function readStoredThemeMode(storage: Storage | undefined): ThemeMode; export declare function readStoredSessionsViewMode(storage: Storage | undefined): SessionsViewMode; export declare function readStoredSessionsShowUnknownChats(storage: Storage | undefined): boolean; export declare const SESSIONS_BOARD_ORDER_STORAGE_KEY = "botmux.dashboard.sessions.boardOrder"; export declare const DEFAULT_BOARD_ORDER: readonly ["needs-you", "working", "todo", "idle"]; /** 必须是默认四列的一个排列(防旧版本残留/手改 localStorage 的脏值)。 * 兼容旧存值:老版本存过含 'starting' 的四列(needs-you/starting/working/idle)—— * 'starting' 已并入 'working',先剔除;缺失的新列 'todo' 补到末尾,避免整体被丢弃回默认。 */ export declare function normalizeBoardOrder(value: unknown): string[] | null; export declare function readStoredBoardOrder(storage: Storage | undefined): string[]; export declare function writeStoredBoardOrder(storage: Storage | undefined, order: string[]): void; export declare function writeStoredSessionsViewMode(storage: Storage | undefined, mode: SessionsViewMode): void; export declare function writeStoredSessionsShowUnknownChats(storage: Storage | undefined, show: boolean): void; export declare const SESSIONS_CREATE_KEEP_OPEN_STORAGE_KEY = "botmux.dashboard.sessions.createKeepOpen"; export declare function readStoredCreateKeepOpen(storage: Storage | undefined): boolean; export declare function writeStoredCreateKeepOpen(storage: Storage | undefined, keepOpen: boolean): void; export type KanbanGroupBy = 'flow' | 'team' | 'bot'; export declare const KANBAN_GROUPBY_STORAGE_KEY = "botmux.dashboard.sessions.kanbanGroupBy"; export declare const KANBAN_TEAM_STORAGE_KEY = "botmux.dashboard.sessions.kanbanTeam"; export declare function normalizeKanbanGroupBy(value: unknown): KanbanGroupBy | null; export declare function readStoredKanbanGroupBy(storage: Storage | undefined): KanbanGroupBy; export declare function writeStoredKanbanGroupBy(storage: Storage | undefined, mode: KanbanGroupBy): void; export type SkinId = 'default' | 'cyber' | 'fallout'; export declare const SKIN_IDS: readonly SkinId[]; export declare const SKIN_STORAGE_KEY = "botmux.dashboard.skin"; export declare function normalizeSkin(value: unknown): SkinId | null; export declare function readStoredSkin(storage: Storage | undefined): SkinId; //# sourceMappingURL=preferences.d.ts.map