import { FC } from 'react'; import { TypographyProps } from '@mui/material'; import { PublicFieldProps, InjectedFieldProps } from './types'; /** * Display a date value as a locale string. * * Uses Intl.DateTimeFormat() if available, passing the locales and options props as arguments. * If Intl is not available, it outputs date as is (and ignores the locales and options props). * * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString * @example * * // renders the record { id: 1234, published_at: new Date('2012-11-07') } as * 07/11/2012 * * * // renders the record { id: 1234, new Date('2012-11-07') } as * 07/11/2012 * * * // renders the record { id: 1234, new Date('2012-11-07') } as * Wednesday, November 7, 2012 * * * // renders the record { id: 1234, new Date('2012-11-07') } as * mercredi 7 novembre 2012 */ export declare const DateField: FC; export interface DateFieldProps extends PublicFieldProps, InjectedFieldProps, Omit { locales?: string | string[]; options?: object; showTime?: boolean; } export default DateField;