/** * Copyright 2024, SumUp Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ export declare const FALLBACK_LOCALE = "en-US"; declare const SUPPORTED_LOCALES: readonly ["bg-BG", "cs-CZ", "da-DK", "de-AT", "de-CH", "de-DE", "de-LU", "el-CY", "el-GR", "en-AU", "en-GB", "en-IE", "en-MT", "en-US", "es-CL", "es-CO", "es-ES", "es-MX", "es-PE", "es-US", "et-EE", "fi-FI", "fr-BE", "fr-CH", "fr-FR", "fr-LU", "hr-HR", "hu-HU", "it-CH", "it-IT", "lt-LT", "lv-LV", "nb-NO", "nl-BE", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "sk-SK", "sl-SI", "sv-SE"]; export type Locale = string | string[]; type SupportedLocale = (typeof SUPPORTED_LOCALES)[number]; export type Translations = Record>; /** * Returns the user's preferred locale(s) in browser-like environments. */ export declare function getDefaultLocale(): Locale; /** * Returns the first supported locale. */ export declare function findSupportedLocale(locale: Locale): SupportedLocale; export declare function transformModulesToTranslations, Key extends string | number | symbol = keyof T>(modules: Record): Translations; export {};