export const YEAR_MATCH: RegExp; export const YEAR_MONTH_MATCH: RegExp; export default class DateTimeWidget extends React.Component { static contextType: React.Context; static propTypes: { uiSchema: PropTypes.Requireable; yesterday: PropTypes.Requireable; same: PropTypes.Requireable; }> | null | undefined>>; plusSixMonths: PropTypes.Requireable; }> | null | undefined>>; plusSixYear: PropTypes.Requireable; }> | null | undefined>>; }> | null | undefined>>; showTimeList: PropTypes.Requireable; allowOnlyYear: PropTypes.Requireable; allowOnlyYearAndMonth: PropTypes.Requireable; dateFormat: PropTypes.Requireable; yearAndMonthDateFormat: PropTypes.Requireable; }>>; }>>; schema: PropTypes.Requireable; }>>; value: PropTypes.Requireable; }; static defaultProps: { type: string; readonly: boolean; disabled: boolean; required: boolean; calendar: boolean; time: boolean; }; constructor(props: any); state: { dateFormat: any; timeFormat: string; yearAndMonthDateFormat: any; format: string; inputFormat: any; placeholder: string; }; UNSAFE_componentWillReceiveProps(props: any): void; componentDidMount(): void; componentWillUnmount(): void; focus: () => void; getStateFromProps(props: any): { dateFormat: any; timeFormat: string; yearAndMonthDateFormat: any; format: string; inputFormat: any; placeholder: string; }; parse: (value: any) => any; timeWritten: any; onlyYearWritten: any; onlyYearAndMonthWritten: boolean | undefined; onChange: (value: any) => void; onToggle: (p: any) => void; toggle: any; setRef: (elem: any) => void; dateTimePickerRef: any; setContainerRef: (elem: any) => void; containerRef: any; onTextWidgetFocus: () => void; onBlur: () => void; onDateTimePickerChange: (value: any) => void; render(): JSX.Element; renderButtons(showButtons: any): JSX.Element[]; getDateWithCurrentTime: (date: any) => any; setToday: () => void; setYesterday: () => void; setSameAsToday: () => void; setPlusSixMonths: () => void; setPlusYear: () => void; formatValue(value: any, options: any, props: any): any; getCurrentDateOrPathDate(path: any): moment.Moment | undefined; } import * as React from "react"; import moment from "moment"; import * as PropTypes from "prop-types";