import React, { Component } from 'react'; type DateRangeValue = { from: string; to: string; }; type Props = { /** Set field disabled */ disabled?: boolean; /** Is fired when field loses focus */ onBlur?: (newValue: string, event?: React.SyntheticEvent) => void; /** * Is fired when field value changes * * @param {Array} value New value */ onChange: (newValue: DateRangeValue, event?: React.SyntheticEvent) => void; /** Is fired when field attains focus */ onFocus?: (event: React.FocusEvent) => void; /** Field value. Format _\{from, to\}_ */ value?: { from: string; to: string; }; maxLength?: number; }; type State = { value: DateRangeValue; }; /** Use `WrappedDateRange` to turn into `form group` with `label`. */ export default class DateRange extends Component { static defaultProps: { disabled: boolean; value: { from: string; to: string; }; }; state: { value: { from: string; to: string; }; }; componentWillMount(): void; componentWillReceiveProps(newProps: Props): void; handleFromChange: (from: string, event?: React.SyntheticEvent) => void; handleToChange: (to: string, event?: React.SyntheticEvent) => void; render(): import("react/jsx-runtime").JSX.Element; } export declare const WrappedDateRange: (props: import("../formField").FormFieldProps) => import("react/jsx-runtime").JSX.Element; export {};