@lion/ui
Version:
A package of extendable web components
24 lines • 988 B
TypeScript
export namespace currencyUtil {
export { countryToCurrencyMap };
export { allCurrencies };
export { getCurrencySymbol };
}
/**
* Map containing all countries and its corresponding currency, following the i18n standard.
* @type {import("../types/index.js").RegionToCurrencyMap}
*/
declare const countryToCurrencyMap: import("../types/index.js").RegionToCurrencyMap;
/**
* Set with all possible currencies derived from the i18n standard.
* @type {import("../types/index.js").AllCurrenciesSet}
*/
declare const allCurrencies: import("../types/index.js").AllCurrenciesSet;
/**
* Matches a currency symbol to a currency code, with a given locale based on Intl.numberFormat.
* @param {import("./LionInputAmountDropdown.js").CurrencyCode} currency
* @param {string} locale
* @returns {string}
*/
declare function getCurrencySymbol(currency: import("./LionInputAmountDropdown.js").CurrencyCode, locale: string): string;
export {};
//# sourceMappingURL=currencyUtil.d.ts.map