import React from 'react'; import { ReactDatePickerProps } from 'react-datepicker'; import { PopperProps } from 'react-popper'; export interface IDateTimePickerProps extends Pick { /** Popper props for placement derived from [here](https://popper.js.org/docs/v2/constructors/#placement) */ placement?: PopperProps['placement']; /** Popper offset https://popper.js.org/docs/v2/modifiers/offset/. Input should be [0, 0] */ offset?: any; /** Popper props for placement derived from [here](https://popper.js.org/docs/v2/constructors/#placement) */ onClose: () => void; /** Control for if it is open */ isOpen: boolean; /** Important boolean to turn off time selection */ includeTime?: boolean; /** Important boolean to turn on date range selection, this will force includeTime false */ useDateRange?: boolean; /** Default offset is 4px. custom offset can override this */ hasOffset?: boolean; /** Passed inline styles. This is mandatory for width and maybe height */ style?: object; /** Mandatory passed reference to the element we will pop over. I'm really not sure what the proper typescript is for this. */ refElement?: any; /** Instead of passing element, we pass reference element id */ refId?: string; /** In some scenarios, we still want to trigger onClose property when clicking the stick ref */ isRefClickTriggerOnClose?: boolean; value?: DateValue; defaultValue?: Date | Date[] | null; onChange?: (value: Date | Date[]) => void; /** Time format for displaying time in time selector if includTime is true */ timeFormat?: string; /** In case there are any overflow hidden, we can use it. But default is true. */ usePortal?: boolean; } /** * Popup wrapper element. We can either pass the referred element directly, or pass in a refId. * The refId will allow us to wrap elements such as javascript elements that don't have react. */ export declare const DateTimePicker: React.FC; export declare const getDateArray: (value: DateValue | any) => Date[]; export declare type DateValue = Date | Date[];