import React from 'react'; import { InputContainerProps } from '../base/InputContainer'; import { IDateTypeOptions } from '../../types'; import { InputProps } from '../types'; import { DateValue } from '../../dateTimePicker'; import { IDateTimePickerProps } from '../../dateTimePicker'; /** * accept value in ISO string, Date, or timestamp * TODO: remove ISO string and timestamp */ export interface IInputDateTime extends InputProps, Pick, Pick { /** Format Options that come from type options */ dateFormatOptions: IDateTypeOptions; /** Optional passed in inline styles */ style?: object; /** Closes picker automatically on selection by default */ shouldCloseOnSelect?: boolean; /** Default datepicker starting value when no value is provided*/ defaultDate?: DateValue; /** 允许外部控制 dateTimePicker 打开状态 */ open?: boolean; /** open change */ onOpen?: (open: boolean) => void; /** enable clear feature, this would be overrided by trailing */ enableClear?: boolean; /** In case there are any overflow hidden, we can use it. But default is true. */ usePortal?: boolean; className?: string; } /** * Currently we will simply use a button until the user can actually input data. */ export declare const InputDateTime: React.FC;