import { z } from "zod"; export declare const DashboardPresetSchema: z.ZodEnum<{ minimal: "minimal"; quota: "quota"; cost: "cost"; analyst: "analyst"; }>; export type DashboardPreset = z.infer; export declare const SidebarMetricSchema: z.ZodEnum<{ todayTokens: "todayTokens"; todayCost: "todayCost"; lowestQuota: "lowestQuota"; alerts: "alerts"; }>; export type SidebarMetric = z.infer; /** How the Usage Center surfaces its primary chrome entry. Extensible enum. */ export declare const EntryModeSchema: z.ZodEnum<{ sidebar: "sidebar"; floating: "floating"; }>; export type EntryMode = z.infer; export declare const HudPositionSchema: z.ZodObject<{ left: z.ZodNumber; top: z.ZodNumber; }, z.core.$strict>; export type HudPosition = z.infer; export declare const DashboardModuleIdSchema: z.ZodEnum<{ accounts: "accounts"; alerts: "alerts"; kpi: "kpi"; heatmap: "heatmap"; trend: "trend"; breakdown: "breakdown"; local: "local"; }>; export type DashboardModuleId = z.infer; export declare const ALL_DASHBOARD_MODULES: readonly DashboardModuleId[]; export declare function modulesForPreset(preset: DashboardPreset): { readonly order: DashboardModuleId[]; readonly hidden: DashboardModuleId[]; }; export declare const UserPreferencesSchema: z.ZodObject<{ version: z.ZodLiteral<1>; display: z.ZodObject<{ preset: z.ZodEnum<{ minimal: "minimal"; quota: "quota"; cost: "cost"; analyst: "analyst"; }>; sidebarMetric: z.ZodEnum<{ todayTokens: "todayTokens"; todayCost: "todayCost"; lowestQuota: "lowestQuota"; alerts: "alerts"; }>; entryMode: z.ZodDefault>; hudPosition: z.ZodDefault>>; defaultRange: z.ZodEnum<{ month: "month"; today: "today"; "7d": "7d"; "30d": "30d"; }>; comparePrevious: z.ZodBoolean; density: z.ZodEnum<{ compact: "compact"; comfortable: "comfortable"; }>; reducedMotion: z.ZodEnum<{ never: "never"; system: "system"; always: "always"; }>; timeZone: z.ZodString; weekStartsOn: z.ZodUnion, z.ZodLiteral<1>, z.ZodLiteral<6>]>; baseCurrency: z.ZodPipe>; modules: z.ZodDefault>; hidden: z.ZodArray>; }, z.core.$strict>>; modulesCustomized: z.ZodDefault; streakMinTokens: z.ZodDefault; }, z.core.$strict>; providers: z.ZodObject<{ hidden: z.ZodArray; order: z.ZodArray; aliases: z.ZodRecord; colors: z.ZodRecord; }, z.core.$strict>; privacy: z.ZodObject<{ showSessionIdentifiers: z.ZodBoolean; redactExports: z.ZodBoolean; autoExportEnabled: z.ZodDefault; autoExportDirectory: z.ZodDefault; autoExportLayout: z.ZodDefault>; autoExportIntervalMinutes: z.ZodDefault; }, z.core.$strict>; alerts: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>; export type UserPreferences = z.infer; export declare const UserPreferencesPatchSchema: z.ZodObject<{ display: z.ZodOptional>; providers: z.ZodOptional>; privacy: z.ZodOptional>; alerts: z.ZodOptional>; }, z.core.$strict>; export type UserPreferencesPatch = z.infer; export declare const PreferencePathOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ op: z.ZodLiteral<"set">; path: z.ZodArray; value: z.ZodUnknown; }, z.core.$strict>, z.ZodObject<{ op: z.ZodLiteral<"unset">; path: z.ZodArray; }, z.core.$strict>], "op">; export type PreferencePathOperation = z.infer; /** 旧 section patch 保持原契约;新编辑器用路径操作避免覆盖未编辑字段。 */ export declare function applyPreferenceOperations(current: UserPreferences, operations: readonly PreferencePathOperation[]): UserPreferences; export declare function patchUserPreferences(current: UserPreferences, patch: UserPreferencesPatch): UserPreferences; export declare function defaultUserPreferences(timeZone?: string): UserPreferences; export declare function effectiveModules(preferences: UserPreferences): DashboardModuleId[]; export declare function applyPresetToPreferences(preferences: UserPreferences, preset: DashboardPreset): UserPreferences; export declare function resetModulesToPreset(preferences: UserPreferences): UserPreferences; //# sourceMappingURL=preferences.d.ts.map