/** * Parses a number based on the specified locale. * * WARNING: This technique assumes a positional number system, which isn't always the case for every locale (e.g. Hebrew, Korean). * It seems though that at the moment, in all major browsers, `Intl.NumberFormat` will format these non-positional number systems * using Western Arabic numerals ("123..."), so this works for now. But if any browser ever implements proper * number system support for these locales, then this algorithm will no longer parse those locales properly. */ export default class NumberParser { private _biDirectionalChars; private _decimal; private _group; private _index; private _minus; private _numeral; /** * Creates a new instance of the {@link NumberParser} class. * @param locale The locale to use for parsing the text. */ constructor(locale: string); /** * Parses a localized string representation of a number and returns the numeric value. * @param str A localized string representation of a number. * @returns The numeric value of the string. */ parse(str: string): number; }