/** * Retrieve a list of locales that can provide substitute for the specified locale * (including itself). * * For example, if 'fr-CA' is specified, then `[ 'fr', 'fr-CA' ]` is returned. * * @param locale * The target locale. * * @return * A list of locales that match the target locale. */ export declare function generateLocales(locale: string): string[]; /** * Normalize a locale so that it can be converted to a bundle path. * * @param locale * The target locale. * * @return The normalized locale. */ export declare const normalizeLocale: (locale: string) => string; /** * Validates that the provided locale at least begins with a ISO 639.1/639.2 comptabile language subtag, * and that any additional subtags contain only valid characters. * * While locales should adhere to the guidelines set forth by RFC 5646 (https://tools.ietf.org/html/rfc5646), * only the language subtag is strictly enforced. * * @param locale * The locale to validate. * * @return * `true` if the locale is valid; `false` otherwise. */ export declare function validateLocale(locale: string): boolean;