import React, { ElementType, ChangeEvent, ReactNode, JSX, HTMLProps, FocusEvent } from 'react'; import * as react_hook_form from 'react-hook-form'; import { FieldError } from 'react-hook-form'; import { PropsSingle, PropsRange, DateRange } from 'react-day-picker'; import { Props, SelectInstance, GroupBase } from 'react-select'; import { Locale } from 'date-fns'; type Overwrite = Pick> & U; interface CurrencyInputOnChangeValues { float: number | null; formatted: string; value: string; } interface IntlConfig { locale: string; currency?: string; } type AmountInputRootProps = Overwrite, { allowDecimals?: boolean; allowNegativeValue?: boolean; id?: string; maxLength?: number; className?: string; customInput?: ElementType; decimalsLimit?: number; decimalScale?: number; defaultValue?: number | string; disabled?: boolean; fixedDecimalLength?: number; onValueChange?: (value: string | undefined, name?: string, values?: CurrencyInputOnChangeValues) => void; placeholder?: string; prefix?: string; suffix?: string; step?: number; decimalSeparator?: string; groupSeparator?: string; disableGroupSeparators?: boolean; disableAbbreviations?: boolean; intlConfig?: IntlConfig; transformRawValue?: (rawValue: string) => string; formatValueOnBlur?: boolean; }>; interface AmountInputProps extends AmountInputRootProps { name: string; error?: boolean | string | { message?: string; } | null | undefined | FieldError; label?: string | null; value?: string | number | readonly string[] | undefined; inputClassName?: string | null; labelClassName?: string | null; errorClassName?: string | null; prepend?: React.ReactNode | null; prependClassName?: string | null; append?: React.ReactNode | null; appendClassName?: string | null; disableShrink?: boolean; disabled?: boolean; } declare const AmountInput: React.ForwardRefExoticComponent & React.RefAttributes>; interface CalendarRootRangeProps extends PropsRange { numberOfMonths?: number; classNames?: Partial>; calendarClassName?: string | null; className?: string; disabled?: boolean; error?: boolean | string | { message?: string; } | null; } interface CalendarRootSingleProps extends PropsSingle { numberOfMonths?: number; classNames?: Partial>; calendarClassName?: string | null; className?: string; disabled?: boolean; error?: boolean | string | { message?: string; } | null; } interface CalendarProps extends CalendarRootSingleProps { name: string; onChange: (event: React.ChangeEvent) => void; error?: boolean | string | { message?: string; } | null | undefined | FieldError; label?: string; value?: Date | null; labelClassName?: string; errorClassName?: string; calendarClassName?: string; disabled?: boolean; } declare const Calendar: React.ForwardRefExoticComponent>; interface CheckboxProps extends React.InputHTMLAttributes { name: string; onChange: (e: ChangeEvent) => void; label?: ReactNode; checked?: boolean; inputClassName?: string; labelClassName?: string; errorClassName?: string; disabled?: boolean; error?: boolean | string | { message?: string; } | null | undefined | FieldError; } declare const Checkbox: React.ForwardRefExoticComponent>; interface Option$4 { value: string | number; label: string | React.ReactNode; } interface CheckboxCardsProps { name: string; onChange: (event: { target: { name: string; value: (string | number)[]; }; }) => void; value?: (string | number)[]; options: Option$4[]; label?: string | React.ReactNode | null; inputClassName?: string | null; cardClassName?: string | null; labelClassName?: string | null; optionLabelClassName?: string | null; errorClassName?: string | null; direction?: 'row' | 'column'; hideInput?: boolean; disabled?: boolean; error?: boolean | string | { message?: string; } | null | undefined | FieldError; } declare const CheckboxCards: React.ForwardRefExoticComponent>; interface Option$3 { value: string | number; label: string | React.ReactNode; } interface CheckboxGroupProps { name: string; onChange: (event: { target: { name: string; value: (string | number)[]; }; }) => void; value?: (string | number)[]; options: Option$3[]; label?: string | React.ReactNode | null; inputClassName?: string | null; labelClassName?: string | null; optionLabelClassName?: string | null; errorClassName?: string | null; disabled?: boolean; error?: boolean | string | { message?: string; } | null | undefined | FieldError; } declare const CheckboxGroup: React.ForwardRefExoticComponent>; interface DatePickerProps extends CalendarRootSingleProps { name: string; onChange: (event: unknown) => void; error?: boolean | string | { message?: string; } | null | undefined | FieldError; label?: string; placeholder?: string; value?: string | number | Date | undefined; locale?: any; format?: string; inputClassName?: string; labelClassName?: string; errorClassName?: string; calendarClassName?: string; prepend?: React.ReactNode; prependClassName?: string; append?: React.ReactNode; appendClassName?: string; disableShrink?: boolean; disabled?: boolean; } declare const DatePicker: React.ForwardRefExoticComponent>; interface DateRangePickerProps extends CalendarRootRangeProps { name: string; onChange: (event: { target: { name: string; value: DateRange | undefined; }; }) => void; error?: boolean | string | { message?: string; } | null | undefined | FieldError; label?: string | null; placeholder?: string | null; value?: DateRange; inputClassName?: string | null; numberOfMonths?: number; separator?: string; labelClassName?: string | null; errorClassName?: string | null; calendarClassName?: string | null; format?: string; prepend?: React.ReactNode | JSX.Element | null; prependClassName?: string | null; append?: React.ReactNode | JSX.Element | null; appendClassName?: string | null; disableShrink?: boolean; disabled?: boolean; locale?: any; } declare const DateRangePicker: React.ForwardRefExoticComponent>; interface FormProps extends HTMLProps { children: ReactNode; } declare const Form: React.FC; interface DateRangePickerInputProps { from: Date; to: Date; } type InputProps = { name: string; onChange: (e: ChangeEvent) => void; error?: boolean | string | { message?: string; } | null | undefined | FieldError; label?: string | null; placeholder?: string | undefined; value?: string | boolean | number | Date | Date[] | DateRangePickerInputProps; inputClassName?: string | null; labelClassName?: string | null; errorClassName?: string | null; prepend?: React.ReactNode | JSX.Element | null; prependClassName?: string | null; append?: React.ReactNode | JSX.Element | null; appendClassName?: string | null; disableShrink?: boolean; disabled?: boolean; } & React.InputHTMLAttributes; declare const Input: React.ForwardRefExoticComponent<{ name: string; onChange: (e: ChangeEvent) => void; error?: boolean | string | { message?: string; } | null | undefined | FieldError; label?: string | null; placeholder?: string | undefined; value?: string | boolean | number | Date | Date[] | DateRangePickerInputProps; inputClassName?: string | null; labelClassName?: string | null; errorClassName?: string | null; prepend?: React.ReactNode | JSX.Element | null; prependClassName?: string | null; append?: React.ReactNode | JSX.Element | null; appendClassName?: string | null; disableShrink?: boolean; disabled?: boolean; } & React.InputHTMLAttributes & React.RefAttributes>; interface MultipleDatePickerProps extends Props { name: string; onChange: (event: { target: { name: string; value: Date[]; }; }) => void; error?: boolean | string | { message?: string; } | null | undefined | FieldError; label?: string | null; placeholder?: string | null; value?: Date[] | undefined; locale?: Locale | null; format?: string; inputClassName?: string | null; labelClassName?: string | null; errorClassName?: string | null; calendarClassName?: string | null; disableShrink?: boolean; disabled?: boolean; classNames?: any; components?: any; onFocus?: (event: React.FocusEvent) => void; onBlur?: (event: React.FocusEvent) => void; [key: string]: any; } declare const MultipleDatePicker: React.ForwardRefExoticComponent & React.RefAttributes>; interface NumberInputProps extends InputProps { name: string; value?: string | number; onChange: (event: { target: { name: string; value: string | number; }; }) => void; } declare const NumberInput: React.ForwardRefExoticComponent>; interface OTPInputProps { name: string; length: number; onChange: (event: { target: { name: string; value: string; }; }) => void; format?: number[] | null; separator?: string | React.ReactElement | null; timer?: number | null; onComplete?: () => void; onResend?: () => void; value?: string; error?: boolean | string | { message?: string; } | null | undefined | FieldError; label?: string | null; resendLabel?: string; inputClassName?: string; labelClassName?: string; errorClassName?: string; disabled?: boolean; } declare const OTPInputComponent: React.ForwardRefExoticComponent>; declare const PasswordInput: React.ForwardRefExoticComponent<{ name: string; onChange: (e: React.ChangeEvent) => void; error?: boolean | string | { message?: string; } | null | undefined | react_hook_form.FieldError; label?: string | null; placeholder?: string | undefined; value?: string | boolean | number | Date | Date[] | DateRangePickerInputProps; inputClassName?: string | null; labelClassName?: string | null; errorClassName?: string | null; prepend?: React.ReactNode | React.JSX.Element | null; prependClassName?: string | null; append?: React.ReactNode | React.JSX.Element | null; appendClassName?: string | null; disableShrink?: boolean; disabled?: boolean; } & React.InputHTMLAttributes & React.RefAttributes>; interface PhoneInputProps extends InputProps { name: string; onChange: (event: React.ChangeEvent) => void; value?: string | number; defaultCountry?: string; [key: string]: any; } declare const PhoneInput: React.ForwardRefExoticComponent & React.RefAttributes>; interface RadioProps { name: string; onChange: (event: React.ChangeEvent) => void; value: string; label?: string | React.ReactNode; checked?: boolean; inputClassName?: string; labelClassName?: string; errorClassName?: string; disabled?: boolean; error?: boolean | string | { message?: string; } | null | undefined | FieldError; [rest: string]: any; } declare const Radio: React.ForwardRefExoticComponent & React.RefAttributes>; interface Option$2 { value: string; label: string | React.ReactNode; } interface RadioCardsProps { name: string; onChange: (event: React.ChangeEvent) => void; value?: string | null; options: Option$2[]; label?: string | React.ReactNode; inputClassName?: string; cardClassName?: string; labelClassName?: string; optionLabelClassName?: string; direction?: 'row' | 'column'; errorClassName?: string; disabled?: boolean; hideInput?: boolean; error?: boolean | string | { message?: string; } | null | undefined | FieldError; } declare const RadioCards: React.ForwardRefExoticComponent>; interface Option$1 { value: string; label: string | React.ReactNode; } interface RadioGroupProps { name: string; onChange: (event: React.ChangeEvent) => void; value?: string | null; options: Option$1[]; label?: string | React.ReactNode; inputClassName?: string; labelClassName?: string; optionLabelClassName?: string; errorClassName?: string; disabled?: boolean; error?: boolean | string | { message?: string; } | null | undefined | FieldError; } declare const RadioGroup: React.ForwardRefExoticComponent>; interface SliderProps { name: string; onChange: (event: { target: { name: string; value: number | number[]; }; }) => void; label?: string | React.ReactNode; value?: number | number[] | null; range?: boolean; vertical?: boolean; defaultValue?: number[]; tracksClassName?: string; trackClassName?: string; railClassName?: string; handleClassName?: string; labelClassName?: string; errorClassName?: string; disabled?: boolean; error?: boolean | string | { message?: string; } | null | undefined | FieldError; [rest: string]: any; } declare const SliderComponent: React.ForwardRefExoticComponent & React.RefAttributes>; interface Option { value: string | number; label: string | React.ReactNode; } interface SelectProps extends Props> { name: string; error?: boolean | string | { message?: string; } | null | undefined | FieldError; label?: string | React.ReactNode; options?: Option[]; placeholder?: string; value?: Option | null; inputClassName?: string; labelClassName?: string; errorClassName?: string; disableShrink?: boolean; disabled?: boolean; classNames?: Record; components?: Record; onFocus?: (e: React.FocusEvent) => void; onBlur?: (e: React.FocusEvent) => void; [rest: string]: any; } declare const Select: React.ForwardRefExoticComponent & React.RefAttributes>>>; interface SwitchProps { name: string; onChange: (event: React.ChangeEvent) => void; label?: string | React.ReactNode; checked?: boolean; inputClassName?: string; labelClassName?: string; errorClassName?: string; disabled?: boolean; error?: boolean | string | { message?: string; } | null | undefined | FieldError; } declare const Switch: React.ForwardRefExoticComponent>; declare const TextArea: React.ForwardRefExoticComponent<{ name: string; onChange: (e: { target: { name: string; value: string; }; }) => void; value?: string; label?: string | null; placeholder?: string | null; disabled?: boolean; autoGrow?: boolean; disableShrink?: boolean; inputClassName?: string; labelClassName?: string; errorClassName?: string; onFocus?: (e: FocusEvent) => void; onBlur?: (e: FocusEvent) => void; error?: boolean | string | { message?: string; } | null | undefined | FieldError; } & React.TextareaHTMLAttributes & React.RefAttributes>; export { AmountInput, Calendar, Checkbox, CheckboxCards, CheckboxGroup, DatePicker, DateRangePicker, Form, Input, MultipleDatePicker, NumberInput, OTPInputComponent as OTPInput, PasswordInput, PhoneInput, Radio, RadioCards, RadioGroup, Select, SliderComponent as Slider, Switch, TextArea };