import type { Bundle, LanguagePack } from '../environment-info/types';
/**
* @description
* Provides APIs to manage localization bundles.
*/
declare class LocaleBundlesManager {
private languagePacks;
constructor();
/**
* This function returns sorted localization bundles based on pyOrder for a given language code.
* If the specified language is unavailable, it falls back to the default bundle which may contain overrides.
*
* @example
LocaleBundlesManager.getLocalizationBundles()
* @returns Bundle[]
*
* @example LocaleBundlesManager.getLocalizationBundles('de-DE')
* @returns Bundle[]
*/
getLocalizationBundles(langCode?: string | undefined): Bundle[];
/**
* This function loads the bundles for the given language bundles.
* If multiple languages are provided, it loads them in parallel.
*
* @example LocaleBundlesManager.loadLocaleBundle(['fr-FR','de-DE'])
* @returns Promise
*
*/
loadLocaleBundle(locales: string[]): Promise;
/**
* Sets or updates language packs in the manager.
* If a language pack already exists, it updates it; otherwise, it adds the new pack.
*
* @example
* const packs: LanguagePack[] = [
* { pyLangCode: 'fr-FR', pyBundles: [...] },
* { pyLangCode: 'de-DE', pyBundles: [...] }
* ];
* LocaleBundlesManager.setLanguagePack(packs);
*/
setLanguagePack(bundles: LanguagePack[]): void;
}
declare const localeBundlesManager: LocaleBundlesManager;
export { localeBundlesManager, LocaleBundlesManager };