import { FC } from 'react'; import { TypographyProps } from '@mui/material/Typography'; import { PublicFieldProps, InjectedFieldProps } from './types'; /** * Display a numeric value as a locale string. * * Uses Intl.NumberFormat() if available, passing the locales and options props as arguments. * If Intl is not available, it outputs number as is (and ignores the locales and options props). * * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString * @example * * // renders the record { id: 1234, score: 567 } as * 567 * * * // renders the record { id: 1234, score: 567 } as * 567 * * * // renders the record { id: 1234, share: 0.2545 } as * 25% * * * // renders the record { id: 1234, price: 25.99 } as * $25.99 * * * // renders the record { id: 1234, price: 25.99 } as * 25,99 $US */ export declare const NumberField: FC; export interface NumberFieldProps extends PublicFieldProps, InjectedFieldProps, Omit { locales?: string | string[]; options?: object; } export default NumberField;