import React from 'react'; import { DatePickerProps as DatePickerProps$1 } from 'react-datepicker'; type DatePickerDate = Date | null; type DatePickerDateRange = (Date | null)[]; type DatePickerValue = DatePickerDate | DatePickerDateRange; type DatePickerProps = Omit & { /** The associated form's id. */ form?: string; /** Whether a date or date range should be provided. */ type?: "datepicker" | "daterangepicker"; /** DatePicker label. */ label?: string; /** Whether to apply padding. */ pad?: boolean | "h" | "v"; /** Placeholder. */ placeholder?: string; /** Can be a `Date` `[Date, Date]` or a (date) `string` or a (time) `number`. */ value?: DatePickerValue | string | number | null; labelNextYear?: string; labelPreviousYear?: string; labelNextMonth?: string; labelPreviousMonth?: string; labelClose?: string; labelChooseDayPrefix?: string; labelDisabledDayPrefix?: string; labelMonthPrefix?: string; labelWeekPrefix?: string; labelTimeInput?: string; labelWeek?: string; /** Gets called when the value is changed. */ onChange?: React.ChangeEventHandler; }; /** * DatePicker component, can be used to enter a date or a date range. * * Known issues: * - Setting date range by typing into input currently does not not work. Possibly * due to lack of support from React-Datepicker. */ declare const DatePicker: React.FC; export { DatePicker }; export type { DatePickerDate, DatePickerDateRange, DatePickerProps, DatePickerValue };