export type NumberLocale = "us" | "eu" | "_"; export declare const defaultLocale: NumberLocale; export interface NumberPatternParams { locale?: NumberLocale; digits?: number; decimals?: number; minDigits?: number; maxDigits?: number; minDecimals?: number; maxDecimals?: number; } export declare function buildNumberPatterns({ locale, digits, decimals, minDigits, maxDigits, minDecimals, maxDecimals, }?: NumberPatternParams): { INT_PATTERN: RegExp; FLOAT_PATTERN: RegExp; }; export declare const INT_PATTERN_US: RegExp, FLOAT_PATTERN_US: RegExp; export declare const INT_PATTERN_EU: RegExp, FLOAT_PATTERN_EU: RegExp; export declare const INT_PATTERN_UNDERSCORE: RegExp, FLOAT_PATTERN_UNDERSCORE: RegExp; export declare const INT_PATTERN: RegExp, FLOAT_PATTERN: RegExp; export declare function isInt(s: string, locale?: NumberLocale): boolean; export declare function isFloat(s: string, locale?: NumberLocale): boolean; export declare function toInt(s: string, locale?: NumberLocale): number | null; export declare function toFloat(s: string, locale?: NumberLocale): number | null; /** * Convert number back to string with proper thousands + decimal separator. * Fraction digits are preserved by default, but you can control with `minFraction`/`maxFraction`. */ export declare function numberToString(n: number, locale?: NumberLocale, opts?: { minFraction?: number; maxFraction?: number; }): string; //# sourceMappingURL=numbers.d.ts.map