import * as React from 'react'; import { Omit } from '../../utils'; export interface DatePickerApi { openDatePickerManually(event: any): void; closeDatePickerManually(event: any): void; } export interface DatePickerProps extends Omit, 'value' | 'onChange'> { /** * Style properties for the component container element */ containerStyle?: React.CSSProperties; /** * Default selected date value */ defaultDate?: Date; /** * Content of the error message. If a value is provided, the component will be styled to show an error state */ errorMessage?: React.ReactNode; /** * Content of the helper message */ helperMessage?: React.ReactNode; /** * Style properties for the input element */ inputStyle?: React.CSSProperties; /** * Clear contents of input by clicking a clear button * @default false */ isClearable?: boolean; /** * If true, the component will have inverse styling to better appear on a dark background * @default false */ isInverse?: boolean; /** * Style properties for the label element */ labelStyle?: React.CSSProperties; /** * Text for label */ labelText: React.ReactNode; /** * Maximum date allowed to be chosen in the calendar */ maxDate?: Date; /** * Style properties for the helper or error message */ messageStyle?: React.CSSProperties; /** * Minimum date allowed to be chosen in the calendar */ minDate?: Date; /** * Text for input placeholder. If isDateFieldInput is true, this will be ignored. */ placeholder?: string; /** * If true, this component must have a value * @default false */ required?: boolean; /** * @internal */ testId?: string; /** * Value of the date input, used when setting the date value externally */ value?: Date; /** * If true, the DatePicker will use the DateFieldInput component for input * @default false */ isDateFieldInput?: boolean; /** * Event fired in multiple instances when internal values are changed and can be used as a generic state change event */ onChange?: (value: string, event: React.ChangeEvent | React.SyntheticEvent) => void; /** * Event that will fire when day is changed */ onDateChange?: (day: Date, event: React.SyntheticEvent) => void; /** * Event that will fire when the text input loses focus */ onInputBlur?: (event: React.FocusEvent) => void; /** * Event that will fire when the text input is changed */ onInputChange?: (event: React.ChangeEvent) => void; /** * Event that will fire when the text input gains focus */ onInputFocus?: (event: React.FocusEvent) => void; /** * @internal */ dateTimePickerContent?: any; /** * @internal */ additionalInputContent?: any; /** * @internal */ apiRef?: React.MutableRefObject; /** * @internal */ setAdditionalInputContent?: (value: string) => void; /** * @internal */ onClear?: (event: React.MouseEvent) => void; } export declare const DatePicker: React.ForwardRefExoticComponent>;