import { TimeHTMLAttributes } from 'react'; type Locale = Intl.Locale['baseName']; type DateFormat = Intl.DateTimeFormatOptions['dateStyle']; type TimeFormat = Intl.DateTimeFormatOptions['timeStyle']; export interface TimeProps extends Omit, 'children'> { /** A valid dateTime string */ dateTime: string; /** If provided, changes format of the date output */ feDateStyle?: DateFormat; /** If provided, displays an alternative size */ feSize?: 'md' | 'sm'; /** If provided, changes format of the time output */ feTimeStyle?: TimeFormat; /** If provided, sets locale of the formatter */ locale?: Locale; } /** * The `