/** * Takes a string/array of strings, removes all formatting/cruft and returns the raw float value. * * Decimal must be included in the regular expression to match floats (defaults to * `settings.decimal`), so if the number uses a non-standard decimal * separator, provide it as the second argument. * * Also matches bracketed negatives (eg. `'$ (1.99)' => -1.99`). * * Doesn't throw any errors (`NaN`s become 0 or provided by fallback value). * * _Alias_: `parse(value, decimal, fallback)` * * **Usage:** * * ```js * unformat('£ 12,345,678.90 GBP'); * // => 12345678.9 * ``` * * @access public * @param {String|Array} value - String or array of strings containing the number/s to parse * @param {Number} [decimal=settings.decimal] - Number of decimal digits of the resultant number * @param {Float} [fallback=settings.fallback] - Value returned on unformat() failure * @return {Float} - Parsed number */ declare function unformat(value: any, decimal?: string, fallback?: number): any; export default unformat;