export declare const SystemOfMeasurement: { readonly Si: "SI"; readonly UsCustomary: "US_CUSTOMARY"; }; export declare const TimeZonePreference: { readonly CustomTimeZone: "CUSTOM_TIME_ZONE"; readonly LocalTimeZone: "LOCAL_TIME_ZONE"; readonly MachineTimeZone: "MACHINE_TIME_ZONE"; }; /** * The user's preferred clock format for displaying times. * * - `LanguageDefault`: derive 12H/24H from the active language/locale (default). * - `TwelveHour`: always display times using a 12-hour clock (AM/PM). * - `TwentyFourHour`: always display times using a 24-hour clock. */ export declare const TimeFormat: { readonly LanguageDefault: "LANGUAGE_DEFAULT"; readonly TwelveHour: "TWELVE_HOUR"; readonly TwentyFourHour: "TWENTY_FOUR_HOUR"; }; export type SystemOfMeasurementType = (typeof SystemOfMeasurement)[keyof typeof SystemOfMeasurement]; export type TimeZonePreferenceType = (typeof TimeZonePreference)[keyof typeof TimeZonePreference]; export type TimeFormatType = (typeof TimeFormat)[keyof typeof TimeFormat]; export interface CurrentUserPreferenceState { language?: string; setLanguage?: (language: string) => void; timeZonePreference?: TimeZonePreferenceType; setTimeZonePreference?: (timeZonePreference: TimeZonePreferenceType) => void; customTimezone?: string | null; systemOfMeasurement?: SystemOfMeasurementType; setSystemOfMeasurement?: (systemOfMeasurement: SystemOfMeasurementType) => void; timeFormat?: TimeFormatType; setTimeFormat?: (timeFormat: TimeFormatType) => void; } export interface CurrentUserPreferenceRuntimeApi { getCurrentUserLanguage: () => Promise; getCurrentUserTimeZonePreference: () => Promise; getCurrentUserCustomTimezone: () => Promise; getCurrentUserSystemOfMeasurement: () => Promise; getCurrentUserTimeFormat: () => Promise; }