1import { Localization } from './Localization.types';
2export * from './Localization.types';
3/**
4 * @deprecated Use Localization.getLocales() instead.
5 * Three-character ISO 4217 currency code. Returns `null` on web.
6 *
7 * @example `'USD'`, `'EUR'`, `'CNY'`, `null`
8 */
9export declare const currency: string | null;
10/**
11 * @deprecated Use Localization.getLocales() instead.
12 * Decimal separator used for formatting numbers.
13 *
14 * @example `','`, `'.'`
15 */
16export declare const decimalSeparator: string;
17/**
18 * @deprecated Use Localization.getLocales() instead.
19 * Digit grouping separator used when formatting numbers larger than 1000.
20 *
21 * @example `'.'`, `''`, `','`
22 */
23export declare const digitGroupingSeparator: string;
24/**
25 * @deprecated Use Localization.getLocales() instead.
26 * A list of all the supported language ISO codes.
27 */
28export declare const isoCurrencyCodes: string[];
29/**
30 * @deprecated Use Localization.getLocales() instead.
31 * Boolean value that indicates whether the system uses the metric system.
32 * On Android and web, this is inferred from the current region.
33 */
34export declare const isMetric: boolean;
35/**
36 * @deprecated Use Localization.getLocales() instead.
37 * Returns if the system's language is written from Right-to-Left.
38 * This can be used to build features like [bidirectional icons](https://material.io/design/usability/bidirectionality.html).
39 *
40 * Returns `false` in Server Side Rendering (SSR) environments.
41 */
42export declare const isRTL: boolean;
43/**
44 * Consider using Localization.getLocales() for a list of user preferred locales instead.
45 * An [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag),
46 * consisting of a two-character language code and optional script, region and variant codes.
47 *
48 * @example `'en'`, `'en-US'`, `'zh-Hans'`, `'zh-Hans-CN'`, `'en-emodeng'`
49 */
50export declare const locale: string;
51/**
52 * @deprecated Use Localization.getLocales() instead.
53 * List of all the native languages provided by the user settings.
54 * These are returned in the order the user defines in their device settings.
55 *
56 * @example `['en', 'en-US', 'zh-Hans', 'zh-Hans-CN', 'en-emodeng']`
57 */
58export declare const locales: string[];
59/**
60 * @deprecated Use Localization.getCalendars() instead.
61 * The current time zone in display format.
62 * On Web time zone is calculated with Intl.DateTimeFormat().resolvedOptions().timeZone. For a
63 * better estimation you could use the moment-timezone package but it will add significant bloat to
64 * your website's bundle size.
65 *
66 * @example `'America/Los_Angeles'`
67 */
68export declare const timezone: string;
69/**
70 * @deprecated Use Localization.getLocales() instead.
71 * The region code for your device that comes from the Region setting under Language & Region on iOS.
72 * This value is always available on iOS, but might return `null` on Android or web.
73 *
74 * @example `'US'`, `'NZ'`, `null`
75 */
76export declare const region: string | null;
77/**
78 * List of user's locales, returned as an array of objects of type `Locale`.
79 * Guaranteed to contain at least 1 element.
80 * These are returned in the order the user defines in their device settings.
81 * On the web currency and measurements systems are not provided, instead returned as null.
82 * If needed, you can infer them from the current region using a lookup table.
83 * @example `[{
84    "languageTag": "pl-PL",
85    "languageCode": "pl",
86    "textDirection": "ltr",
87    "digitGroupingSeparator": " ",
88    "decimalSeparator": ",",
89    "measurementSystem": "metric",
90    "currencyCode": "PLN",
91    "currencySymbol": "zł",
92    "regionCode": "PL",
93    "temperatureUnit": "celsius"
94  }]`
95 */
96export declare const getLocales: () => import("./Localization.types").Locale[];
97/**
98 * List of user's preferred calendars, returned as an array of objects of type `Calendar`.
99 * Guaranteed to contain at least 1 element.
100 * For now always returns a single element, but it's likely to return a user preference list on some platforms in the future.
101 * @example `[
102    {
103      "calendar": "gregory",
104      "timeZone": "Europe/Warsaw",
105      "uses24hourClock": true,
106      "firstWeekday": 1
107    }
108  ]`
109 */
110export declare const getCalendars: () => import("./Localization.types").Calendar[];
111/**
112 * A hook providing a list of user's locales, returned as an array of objects of type `Locale`.
113 * Guaranteed to contain at least 1 element.
114 * These are returned in the order the user defines in their device settings.
115 * On the web currency and measurements systems are not provided, instead returned as null.
116 * If needed, you can infer them from the current region using a lookup table.
117 * If the OS settings change, the hook will rerender with a new list of locales.
118 * @example `[{
119    "languageTag": "pl-PL",
120    "languageCode": "pl",
121    "textDirection": "ltr",
122    "digitGroupingSeparator": " ",
123    "decimalSeparator": ",",
124    "measurementSystem": "metric",
125    "currencyCode": "PLN",
126    "currencySymbol": "zł",
127    "regionCode": "PL",
128    "temperatureUnit": "celsius"
129  }]`
130 */
131export declare function useLocales(): import("./Localization.types").Locale[];
132/**
133 * A hook providing a list of user's preferred calendars, returned as an array of objects of type `Calendar`.
134 * Guaranteed to contain at least 1 element.
135 * For now always returns a single element, but it's likely to return a user preference list on some platforms in the future.
136 * If the OS settings change, the hook will rerender with a new list of calendars.
137 * @example `[
138    {
139      "calendar": "gregory",
140      "timeZone": "Europe/Warsaw",
141      "uses24hourClock": true,
142      "firstWeekday": 1
143    }
144  ]`
145 */
146export declare function useCalendars(): import("./Localization.types").Calendar[];
147/**
148 * Get the latest native values from the device. Locale can be changed on some Android devices
149 * without resetting the app.
150 * > On iOS, changing the locale will cause the device to reset meaning the constants will always be
151 * correct.
152 *
153 * @example
154 * ```ts
155 * // When the app returns from the background on Android...
156 *
157 * const { locale } = await Localization.getLocalizationAsync();
158 * ```
159 * @deprecated
160 * Use Localization.getLocales() or Localization.getCalendars() instead.
161 */
162export declare function getLocalizationAsync(): Promise<Localization>;
163//# sourceMappingURL=Localization.d.ts.map