import { Component, SyntheticEvent } from 'react'; import { ApplyLocaleContext } from '@instructure/ui-i18n'; import type { Moment } from '@instructure/ui-i18n'; import type { DateTimeInputProps, DateTimeInputState } from './props'; /** --- category: components --- **/ declare class DateTimeInput extends Component { private static readonly DEFAULT_MESSAGE_FORMAT; static allowedProps: readonly (keyof DateTimeInputProps)[]; static defaultProps: { readonly layout: "inline"; readonly colSpacing: "medium"; readonly rowSpacing: "small"; readonly timeStep: 30; readonly showMessages: true; readonly messageFormat: "LLLL"; readonly isRequired: false; readonly allowNonStepInput: false; }; context: React.ContextType; static contextType: import("react").Context<{ locale?: string; timezone?: string; }>; ref: Element | null; handleRef: (el: Element | null) => void; constructor(props: DateTimeInputProps); componentDidMount(): void; componentDidUpdate(prevProps: Readonly): void; recalculateState(dateStr?: string, doNotChangeDate?: boolean, doNotChangeTime?: boolean): DateTimeInputState; reset: () => void; locale(): string; timezone(): string; private formatDateInput; isDisabledDate(date: Moment): boolean; handleDateTextChange: (_event: SyntheticEvent, inputValue: string, _utcDateString: string) => void; handleDateValidated: (event: SyntheticEvent, _inputValue: string, utcDateString: string) => void; updateStateBasedOnTimeSelect: (event: SyntheticEvent, option: { value?: string; inputText: string; }) => void; changeStateIfNeeded: (newState: DateTimeInputState, e: SyntheticEvent) => void; areDifferentDates: (d1?: Moment, d2?: Moment) => boolean; handleBlur: (e: SyntheticEvent) => void; render(): import("@emotion/react/jsx-runtime").JSX.Element; } export default DateTimeInput; export { DateTimeInput }; //# sourceMappingURL=index.d.ts.map