index.d.ts
type DecimalSeparator = '.' | ',';
export interface ParsingOptions {
decimalSeparator: DecimalSeparator;
}
/**
* Retrieves the computer's locale decimal separator.
* @returns Either "." or ",".
*/
export declare function getLocaleDecimalSeparator(): DecimalSeparator;
export declare const defaultParsingOptions: ParsingOptions;
export declare function parseNumeric(numericString: undefined | null, userParsingOptions?: Partial<ParsingOptions>): undefined;
export declare function parseNumeric(numericString: string, userParsingOptions?: Partial<ParsingOptions>): number;
export default parseNumeric;