/// <reference types="react" />
import { IconComponent, IconPropSize } from '@consta/icons/Icon';
import { Locale } from 'date-fns';
import { DateRange } from '../../utils/types/Date';
import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
import { DateTimePropView } from '../DateTime/helpers';
import { TextFieldPropForm, TextFieldPropSize, TextFieldPropStatus, TextFieldPropView } from '../TextField/TextField';
export declare const datePickerPropType: readonly ["date", "date-range", "date-time", "date-time-range", "time", "year", "year-range", "month", "month-range"];
export declare type DatePickerPropType = typeof datePickerPropType[number];
export declare const datePickerPropTypeDefault: "date";
export declare type DatePickerPropDateTimeView = DateTimePropView;
export declare const datePickerPropDateTimeViewDefault: "classic";
declare type Range = 'date-range' | 'date-time-range' | 'year-range' | 'month-range';
export declare const datePickerErrorTypes: readonly ["outOfRange", "invalidInputAttempt", "startDateIsGreaterThanEndDate"];
export declare type DatePickerPropValue<TYPE extends DatePickerPropType> = (TYPE extends Range ? DateRange : Date) | null;
export declare type DatePickerPropOnChange<TYPE extends DatePickerPropType> = (value: DatePickerPropValue<TYPE>, props: {
    e: React.MouseEvent<HTMLButtonElement, MouseEvent> | Event;
}) => void;
export declare const datePickerPropDropdownForm: readonly ["default", "brick", "round"];
export declare type DatePickerPropDropdownForm = typeof datePickerPropDropdownForm[number];
export declare const datePickerPropDropdownFormDefault: "default";
declare type DatePickerPropInputRef<TYPE> = TYPE extends Range ? [React.Ref<HTMLInputElement>?, React.Ref<HTMLInputElement>?] : React.Ref<HTMLInputElement>;
declare type DatePickerPropSide<TYPE> = TYPE extends Range ? [(string | IconComponent)?, (string | IconComponent)?] | string | IconComponent : string | IconComponent;
declare type DatePickerPropOnFocus<TYPE> = TYPE extends Range ? [
    React.FocusEventHandler<HTMLElement>?,
    React.FocusEventHandler<HTMLElement>?
] | React.FocusEventHandler<HTMLElement> : React.FocusEventHandler<HTMLElement>;
declare type DatePickerPropName<TYPE> = TYPE extends Range ? [string?, string?] | string : string;
export declare type DatePickerAdditionalControlRenderFn = (props: {
    currentVisibleDate?: Date;
}) => React.ReactNode | React.ReactNode[];
export declare type DatePickerAdditionalControlRenderProp = React.ReactNode | DatePickerAdditionalControlRenderFn;
export declare type DatePickerProps<TYPE extends DatePickerPropType = 'date'> = PropsWithHTMLAttributesAndRef<{
    type?: TYPE;
    value?: DatePickerPropValue<TYPE>;
    onChange?: DatePickerPropOnChange<TYPE>;
    minDate?: Date;
    maxDate?: Date;
    renderAdditionalControls?: DatePickerAdditionalControlRenderProp;
    events?: Date[];
    dateTimeView?: DatePickerPropDateTimeView;
    locale?: Locale;
    children?: never;
    onError?: DatePickerPropOnError;
    id?: string;
    name?: DatePickerPropName<TYPE>;
    disabled?: boolean;
    dropdownClassName?: string;
    size?: TextFieldPropSize;
    view?: TextFieldPropView;
    form?: TextFieldPropForm;
    status?: TextFieldPropStatus;
    onFocus?: DatePickerPropOnFocus<TYPE>;
    onBlur?: DatePickerPropOnFocus<TYPE>;
    autoFocus?: boolean;
    placeholder?: string;
    readOnly?: boolean;
    required?: boolean;
    tabIndex?: number;
    inputRef?: DatePickerPropInputRef<TYPE>;
    ariaLabel?: string;
    iconSize?: IconPropSize;
    format?: string;
    separator?: string;
    dropdownForm?: DatePickerPropDropdownForm;
    leftSide?: DatePickerPropSide<TYPE>;
    rightSide?: DatePickerPropSide<TYPE>;
    label?: string;
    labelIcon?: IconComponent;
    caption?: string;
    labelPosition?: 'top' | 'left';
    onChangeCurrentVisibleDate?: (date: Date) => void;
    currentVisibleDate?: Date;
    multiplicitySeconds?: number;
    multiplicityMinutes?: number;
    multiplicityHours?: number;
    isMobile?: number;
    withClearButton?: boolean;
    onDropdownOpen?: (isOpen: boolean) => void;
    dropdownOpen?: boolean;
    ignoreOutsideClicksRefs?: ReadonlyArray<React.RefObject<HTMLElement>>;
}, HTMLDivElement>;
export declare type DatePickerComponent = <TYPE extends DatePickerPropType = 'date'>(props: DatePickerProps<TYPE>) => React.ReactElement | null;
export declare type DatePickerTypeComponent<TYPE extends DatePickerPropType> = (props: Omit<DatePickerProps<TYPE>, 'type'>) => React.ReactElement | null;
export declare type DatePickerPropOnError = (props: {
    type: typeof datePickerErrorTypes[0];
    stringValue: string;
    dd?: string;
    MM?: string;
    yyyy?: string;
    ss?: string;
    mm?: string;
    HH?: string;
    date: Date;
} | {
    type: typeof datePickerErrorTypes[1];
    stringValue: string;
    dd?: string;
    MM?: string;
    yyyy?: string;
    ss?: string;
    mm?: string;
    HH?: string;
} | {
    type: typeof datePickerErrorTypes[2];
    date: [Date, Date];
}) => void;
export {};
