import PropTypes from 'prop-types'; import React from 'react'; import { WidgetProps } from './Widget'; export interface TimeInputProps extends Omit { value?: Date | null; onChange?: (date: Date | null, ctx?: any) => void; datePart?: Date; use12HourClock?: boolean; padValues?: boolean; emptyCharacter?: string; noClearButton?: boolean; disabled?: boolean; readOnly?: boolean; precision: 'minutes' | 'seconds' | 'milliseconds'; hoursAddon?: React.ReactNode; minutesAddon?: React.ReactNode; secondsAddon?: React.ReactNode; millisecondsAddon?: React.ReactNode; } declare function TimeInput(uncontrolledProps: TimeInputProps): JSX.Element; declare namespace TimeInput { var propTypes: { /** * @example ['valuePicker', [ ['new Date()'] ]] */ value: PropTypes.Requireable; /** * @example ['onChangePicker', [ ['new Date()'] ]] */ onChange: PropTypes.Requireable<(...args: any[]) => any>; /** * The default date used to construct a new time when the `value` is empty * * @default new Date() **/ datePart: PropTypes.Requireable; /** * Use a 12 hour clock (with AM/PM) instead of 24 hour one. * The configured localizer may provide a default value . **/ use12HourClock: PropTypes.Requireable; /** Time part values will be padded by `0` */ padValues: PropTypes.Requireable; /** The string character used to pad empty, or cleared values */ emptyCharacter: PropTypes.Requireable; /** Hide the input clear button */ noClearButton: PropTypes.Requireable; /** * @example ['disabled', ['new Date()']] */ disabled: PropTypes.Requireable; /** * @example ['readOnly', ['new Date()']] */ readOnly: PropTypes.Requireable; /** Controls how precise of a time can be input **/ precision: PropTypes.Validator; /** * The seperator between hours and minutes * @default ':' */ hoursAddon: PropTypes.Requireable; /** * The seperator between hours and minutes * @default ':' */ minutesAddon: PropTypes.Requireable; /** * The seperator between hours and minutes * @default ':' */ secondsAddon: PropTypes.Requireable; /** * The seperator between hours and minutes * @default '.' */ millisecondsAddon: PropTypes.Requireable; }; var defaultProps: { hoursAddon: string; padValues: boolean; precision: string; emptyCharacter: string; }; } export default TimeInput; //# sourceMappingURL=TimeInput.d.ts.map