import * as React from "react"; import { type AppDateFormat, type AppLocale, type AppTimeFormat, type AppTimezone } from "./types.js"; import type { AppContextValue, AppProviderProp } from "../props/components/app.prop.js"; export type { AppProviderProp, AppContextValue } from "../props/components/app.prop.js"; export declare function AppProvider({ children, defaultLocale, fallbackLocale, defaultTimezone, systemTimezone, defaultTimeFormat, defaultDateFormat, timezoneOptions, storageKey, persist, theme: initialTheme, brand: initialBrand, density: initialDensity, fontSize: initialFontSize, scaling: initialScaling, emitFieldNames, onLocaleChange, onTimezoneChange, onTimeFormatChange, onDateFormatChange, onThemeChange, onBrandChange, onDensityChange, onFontSizeChange, onScalingChange, }: AppProviderProp): React.JSX.Element; export declare function useAppContext(): AppContextValue; /** Returns null outside AppProvider — used by pickers for optional context. */ export declare function useOptionalAppContext(): AppContextValue | null; /** Shorthand for `{ locale, setLocale }`. */ export declare function useAppLocale(): { locale: AppLocale; fallbackLocale: AppLocale; setLocale: (locale: AppLocale) => void; dateFnsLocale: import("date-fns").Locale; dayPickerLocale: Partial; }; /** Shorthand for `{ timezone, setTimezone }`. */ export declare function useAppTimezone(): { timezone: string; setTimezone: (timezone: AppTimezone) => void; }; /** Shorthand for `{ timeFormat, setTimeFormat }`. */ export declare function useAppTimeFormat(): { timeFormat: AppTimeFormat; setTimeFormat: (timeFormat: AppTimeFormat) => void; }; /** Shorthand for `{ dateFormat, setDateFormat }`. */ export declare function useAppDateFormat(): { dateFormat: AppDateFormat; setDateFormat: (dateFormat: AppDateFormat) => void; };