import type { Calendar, Locale, LocalizeApi, NumberFormatSettings, ServerLanguagesProviderProps, TemperatureUnit } from "./types"; /** * Gets the device's calendar system. * @returns A {@link Calendar} (e.g., `"gregorian"`) */ export declare const getCalendar: () => Calendar; /** * Gets the device's country code. * @returns An ISO 3166-1 alpha-2 country code (e.g., `"US"`, `"FR"`) */ export declare const getCountry: () => string; /** * Gets currency codes for the device's locales. * @returns An array of ISO 4217 currency codes (e.g., `["USD", "EUR"]`) */ export declare const getCurrencies: () => string[]; /** * Gets the device's locales with language, country, and text direction info. * @returns An array of {@link Locale} objects */ export declare const getLocales: () => Locale[]; /** * Gets the device's decimal and grouping separators. * @returns A {@link NumberFormatSettings} object */ export declare const getNumberFormatSettings: () => NumberFormatSettings; /** * Gets the device's preferred temperature unit. * @returns A {@link TemperatureUnit} (`"celsius"` or `"fahrenheit"`) */ export declare const getTemperatureUnit: () => TemperatureUnit; /** * Gets the device's IANA time zone. * @returns An IANA time zone identifier (e.g., `"America/New_York"`) */ export declare const getTimeZone: () => string; /** * Gets whether the device uses 24-hour time format. * @returns `true` if 24-hour, `false` if 12-hour */ export declare const uses24HourClock: () => boolean; /** * Gets whether the device uses the metric system. * @returns `true` for metric, `false` for imperial */ export declare const usesMetricSystem: () => boolean; /** * Gets whether automatic date & time is enabled. * @returns A `boolean`, or `undefined` if unsupported */ export declare const usesAutoDateAndTime: () => boolean | undefined; /** * Gets whether automatic time zone is enabled. * @returns A `boolean`, or `undefined` if unsupported */ export declare const usesAutoTimeZone: () => boolean | undefined; /** * Finds the best matching language tag from the given list based on device locales. * @param languageTags - An array of BCP 47 language tags to match against * @returns The best match with its `isRTL` flag, or `undefined` if none found */ export declare const findBestLanguageTag: (languageTags: readonly T[]) => { languageTag: T; isRTL: boolean; } | undefined; /** * Opens the system app language settings. Only supported on Android 13+. * @throws On unsupported platforms */ export declare const openAppLanguageSettings: () => Promise; /** * Provides custom language tags for SSR / testing. * Only active server-side; on the client, renders children as-is. * * @example * ```tsx * * * * ``` */ export declare const ServerLanguagesProvider: ({ children, value, }: ServerLanguagesProviderProps) => string | number | bigint | boolean | import("react").ReactElement> | Iterable | Promise> | Iterable | null | undefined> | import("react").FunctionComponentElement> | null | undefined; /** * Returns the {@link LocalizeApi} localization API. * Uses device languages on the client, or {@link ServerLanguagesProvider} values during SSR. * * @example * ```tsx * const { getLocales, getTemperatureUnit } = useLocalize(); * ``` */ export declare const useLocalize: () => LocalizeApi; //# sourceMappingURL=module.d.ts.map