import type { Locale } from "date-fns"; import type { AppLocale, AppTimeFormat, AppDateFormat } from "../../app/types.js"; export type DatetimeContext = { locale: AppLocale; dateFnsLocale: Locale; timezone: string; timeFormat: AppTimeFormat; dateFormat: AppDateFormat; }; /** * Sync the CURRENT scope's datetime prefs (mirrors `syncI18nLocale`). AppProvider calls it while * rendering; inside `runWithAppSettings` it writes that request's state only. */ export declare function syncDatetimeContext(prefs: Pick & { dateFnsLocale?: Locale; }): void; /** The current scope's datetime prefs, with the neutral defaults for anything unset. */ export declare function getDatetimeContext(): Readonly; export declare function enableLiveRelativeFormatting(): void; export declare function disableLiveRelativeFormatting(): void; export declare function canUseLiveRelativeFormatting(): boolean; /** Vitest only — reset the current scope to defaults between cases. */ export declare function resetDatetimeContextForTests(): void;