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  }]`
94 */
95export declare const getLocales: () => import("./Localization.types").Locale[];
96/**
97 * List of user's preferred calendars, returned as an array of objects of type `Calendar`.
98 * Guaranteed to contain at least 1 element.
99 * For now always returns a single element, but it's likely to return a user preference list on some platforms in the future.
100 * @example `[
101    {
102      "calendar": "gregory",
103      "timeZone": "Europe/Warsaw",
104      "uses24hourClock": true,
105      "firstWeekday": 1
106    }
107  ]`
108 */
109export declare const getCalendars: () => import("./Localization.types").Calendar[];
110/**
111 * A hook providing a list of user's locales, returned as an array of objects of type `Locale`.
112 * Guaranteed to contain at least 1 element.
113 * These are returned in the order the user defines in their device settings.
114 * On the web currency and measurements systems are not provided, instead returned as null.
115 * If needed, you can infer them from the current region using a lookup table.
116 * If the OS settings change, the hook will rerender with a new list of locales.
117 * @example `[{
118    "languageTag": "pl-PL",
119    "languageCode": "pl",
120    "textDirection": "ltr",
121    "digitGroupingSeparator": " ",
122    "decimalSeparator": ",",
123    "measurementSystem": "metric",
124    "currencyCode": "PLN",
125    "currencySymbol": "zł",
126    "regionCode": "PL"
127  }]`
128 */
129export declare function useLocales(): import("./Localization.types").Locale[];
130/**
131 * A hook providing a list of user's preferred calendars, returned as an array of objects of type `Calendar`.
132 * Guaranteed to contain at least 1 element.
133 * For now always returns a single element, but it's likely to return a user preference list on some platforms in the future.
134 * If the OS settings change, the hook will rerender with a new list of calendars.
135 * @example `[
136    {
137      "calendar": "gregory",
138      "timeZone": "Europe/Warsaw",
139      "uses24hourClock": true,
140      "firstWeekday": 1
141    }
142  ]`
143 */
144export declare function useCalendars(): import("./Localization.types").Calendar[];
145/**
146 * Get the latest native values from the device. Locale can be changed on some Android devices
147 * without resetting the app.
148 * > On iOS, changing the locale will cause the device to reset meaning the constants will always be
149 * correct.
150 *
151 * @example
152 * ```ts
153 * // When the app returns from the background on Android...
154 *
155 * const { locale } = await Localization.getLocalizationAsync();
156 * ```
157 * @deprecated
158 * Use Localization.getLocales() or Localization.getCalendars() instead.
159 */
160export declare function getLocalizationAsync(): Promise<Localization>;
161//# sourceMappingURL=Localization.d.ts.map