/** * @typedef Currency * @property {string} name * @property {string} code * @property {string} symbol * @property {number} decimalPlaces * @property {"before" | "after"} position */ /** * Return the currency cleaned from useless info and from the `code` field to be used to generate * a default currency format. * * @param {Currency | undefined} currency * @returns {object} */ export function createDefaultCurrency(currency: Currency | undefined): object; /** * @param {Currency | false | undefined} currency * @returns {string | undefined} */ export function computeFormatFromCurrency(currency: Currency | false | undefined): string | undefined; export type Currency = { name: string; code: string; symbol: string; decimalPlaces: number; position: "before" | "after"; };