import React from 'react'; export declare type DateRange = readonly [Date?, Date?]; export declare const sizes: readonly ["s", "m", "l"]; export declare type Size = typeof sizes[number]; export declare type StyleProps = { size?: Size; }; export declare type DateLimitProps = { minDate: Date; maxDate: Date; }; export declare type ValueProps = { value?: V; }; declare type RenderControls = (props: { onChange: (value?: V) => void; isInvalid: boolean; tooltipContent?: React.ReactNode; isCalendarOpened: boolean; } & ValueProps & StyleProps) => React.ReactElement; declare type SingleProps = { type: 'date'; onChange: (value?: Date) => void; renderControls?: RenderControls; } & ValueProps; declare type RangeProps = { type: 'date-range'; onChange: (value?: DateRange) => void; renderControls?: RenderControls; } & ValueProps; export declare type Data = DateLimitProps & (SingleProps | RangeProps); declare type Props = DateLimitProps & StyleProps & (SingleProps | RangeProps); export declare const DatePicker: React.FC; export {};