+\r
+ interface Locale extends LocaleOptions {\r
+ /** Gets the most likely values for the language, script, and region of the locale based on existing values. */\r
+ maximize(): Locale;\r
+ /** Attempts to remove information about the locale that would be added by calling `Locale.maximize()`. */\r
+ minimize(): Locale;\r
+ /** Returns the locale's full locale identifier string. */\r
+ toString(): BCP47LanguageTag;\r
+ }\r
+\r
+ /**\r
+ * Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)\r
+ * objects\r
+ *\r
+ * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).\r
+ * For the general form and interpretation of the locales argument,\r
+ * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\r
+ *\r
+ * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.\r
+ *\r
+ * @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.\r
+ *\r
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).\r
+ */\r
+ const Locale: {\r
+ new (tag?: BCP47LanguageTag, options?: LocaleOptions): Locale;\r
+ };\r
+\r
+ interface DisplayNamesOptions {\r
+ localeMatcher: RelativeTimeFormatLocaleMatcher;\r
+ style: RelativeTimeFormatStyle;\r
+ type: "language" | "region" | "script" | "currency";\r
+ fallback: "code" | "none";\r
+ }\r
+\r
+ interface DisplayNames {\r
+ /**\r
+ * Receives a code and returns a string based on the locale and options provided when instantiating\r
+ * [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)\r
+ *\r
+ * @param code The `code` to provide depends on the `type` passed to display name during creation:\r
+ * - If the type is `"region"`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),\r
+ * or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).\r
+ * - If the type is `"script"`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).\r
+ * - If the type is `"language"`, code should be a `languageCode` ["-" `scriptCode`] ["-" `regionCode` ] *("-" `variant` )\r
+ * subsequence of the unicode_language_id grammar in [UTS 35's Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).\r
+ * `languageCode` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.\r
+ * - If the type is `"currency"`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).\r
+ *\r
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).\r
+ */\r
+ of(code: string): string;\r
+ /**\r
+ * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current\r
+ * [`Intl/DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.\r
+ *\r
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).\r
+ */\r
+ resolvedOptions(): DisplayNamesOptions;\r
+ }\r
+\r
+ /**\r
+ * The [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)\r
+ * object enables the consistent translation of language, region and script display names.\r
+ *\r
+ * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).\r
+ */\r
+ const DisplayNames: {\r
+ prototype: DisplayNames;\r
+\r
+ /**\r
+ * @param locales A string with a BCP 47 language tag, or an array of such strings.\r
+ * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)\r
+ * page.\r
+ *\r
+ * @param options An object for setting up a display name.\r
+ *\r
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).\r
+ */\r
+ new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: Partial<DisplayNamesOptions>): DisplayNames;\r
+\r
+ /**\r
+ * Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.\r
+ *\r
+ * @param locales A string with a BCP 47 language tag, or an array of such strings.\r
+ * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)\r
+ * page.\r
+ *\r
+ * @param options An object with a locale matcher.\r
+ *\r
+ * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.\r
+ *\r
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).\r
+ */\r
+ supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: {localeMatcher: RelativeTimeFormatLocaleMatcher}): BCP47LanguageTag[];\r
+ };\r
+\r