import type { ChangeEventHandler, FocusEventHandler, ReactElement, RefObject } from 'react'; import { Component } from 'react'; interface DatePlaceholder { day: string; month: string; year: string; } export interface InputDateProps { value?: string; placeholder?: string; disabled?: boolean; autoFocus?: boolean; adaptive?: boolean; id?: string; onChange: (date: string) => void; onBlur?: (date: string) => void; onFocus?: () => void; } /** * InputDate component * * It's composed of three inputs that can't exceed their max size * It reports is value to the containing element whenever all three values * are set, without checking for their correctness */ export declare class InputDate extends Component { static defaultProps: { value: string; }; placeholder: DatePlaceholder | undefined; monthInputRef: RefObject; yearInputRef: RefObject; currentYear: string; shouldIgnoreBlur: boolean; createHandlerInputBlur(field: 'year' | 'month' | 'day', cb?: (value: string) => void): undefined | FocusEventHandler; createHandlerInputChange(field: 'year' | 'month' | 'day', cb?: (value: string) => void): undefined | ChangeEventHandler; ignoreNextBlur(): void; render(): ReactElement; } export {}; //# sourceMappingURL=index.d.ts.map