@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
8 lines (7 loc) • 615 B
TypeScript
import { FormatNumber } from '../types/input';
export declare const formatNumber: (amount: number, formatNumber: FormatNumber, locale?: string) => string;
export declare const getThousandSeparator: (locale?: string) => string;
export declare const getDecimalSeparator: (locale?: string) => string;
export declare const checkValidFormattedNumber: (value: string, locale?: string) => boolean;
export declare const convertDecimalSeparator: (value: string, decimalSeparator: string) => string;
export declare const removeThousandSeparator: (value: string, locale?: string, replaceDecimalSeparator?: boolean) => string;