import { TextFieldProps, TextField, CheckboxProps, FormControlLabelProps, SelectProps, FormControlProps, SelectChangeEvent, InputLabelProps, IconButtonProps, FormLabelProps, RadioProps, SwitchProps, ChipTypeMap, AutocompleteProps, AutocompleteValue, AutocompleteChangeReason, AutocompleteChangeDetails, SliderProps, ToggleButtonGroupProps, ToggleButtonProps } from '@mui/material'; import { FieldValues, FieldPath, UseControllerProps, FieldError, Control, PathValue, UseFormProps, SubmitHandler, SubmitErrorHandler, UseFormReturn, UseControllerReturn } from 'react-hook-form'; export * from 'react-hook-form'; import { ReactNode, ChangeEvent, RefAttributes, ReactElement, PropsWithChildren, FormHTMLAttributes, FormEventHandler, Ref, ElementType, SyntheticEvent, ComponentPropsWithoutRef, CSSProperties } from 'react'; import * as react_jsx_runtime from 'react/jsx-runtime'; type TextFieldElementProps = FieldPath, TValue = unknown> = Omit & { rules?: UseControllerProps['rules']; name: TName; parseError?: (error: FieldError) => ReactNode; control?: Control; component?: typeof TextField; transform?: { input?: (value: PathValue) => TValue; output?: (event: ChangeEvent) => PathValue; }; }; type TextFieldElementComponent = = FieldPath, TValue = unknown>(props: TextFieldElementProps & RefAttributes) => ReactElement; declare const _default$b: TextFieldElementComponent; type FormContainerProps = PropsWithChildren & { onSuccess?: SubmitHandler; onError?: SubmitErrorHandler; FormProps?: FormHTMLAttributes; handleSubmit?: FormEventHandler; formContext?: UseFormReturn; }>; declare function FormContainer({ handleSubmit, children, FormProps, formContext, onSuccess, onError, ...useFormProps }: PropsWithChildren>): react_jsx_runtime.JSX.Element; type CheckboxElementProps = FieldPath, TValue = unknown> = Omit & { rules?: UseControllerProps['rules']; name: TName; inputRef?: Ref; parseError?: (error: FieldError) => ReactNode; label?: FormControlLabelProps['label']; helperText?: string; control?: Control; labelProps?: Omit; transform?: { input?: (value: PathValue) => TValue; output?: (event: ChangeEvent, value: TValue) => PathValue; }; }; type CheckboxElementComponent = = FieldPath, TValue = unknown>(props: CheckboxElementProps & RefAttributes) => ReactElement; declare const _default$a: CheckboxElementComponent; type SelectElementProps = FieldPath, TValue = unknown> = Omit & { rules?: UseControllerProps['rules']; name: TName; options?: TValue[]; valueKey?: string; labelKey?: string; type?: 'string' | 'number'; parseError?: (error: FieldError) => ReactNode; objectOnChange?: boolean; onChange?: (value: any) => void; control?: Control; transform?: { input?: (value: PathValue) => TValue; output?: (event: ChangeEvent) => PathValue; }; }; type SelectElementComponent = = FieldPath, TValue = unknown>(props: SelectElementProps & RefAttributes) => ReactElement; declare const _default$9: SelectElementComponent; type CheckboxButtonGroupProps = FieldPath, TValue = unknown> = { options: (TValue | unknown)[]; helperText?: ReactNode; name: TName; required?: boolean; parseError?: (error: FieldError) => ReactNode; label?: string; labelKey?: string; valueKey?: string; onChange?: (data: TValue[]) => void; returnObject?: boolean; disabled?: boolean; row?: boolean; control?: Control; rules?: UseControllerProps['rules']; checkboxColor?: CheckboxProps['color']; labelProps?: Omit; transform?: { input?: (value: PathValue) => TValue[]; output?: (value: TValue[]) => PathValue; }; defaultValue?: TValue[]; }; type CheckboxButtonGroupComponent = = FieldPath, TValue = unknown>(props: CheckboxButtonGroupProps & RefAttributes) => ReactElement; declare const _default$8: CheckboxButtonGroupComponent; type MultiSelectElementProps = FieldPath, TValue = unknown> = Omit & { options: TValue[]; label?: string; itemKey?: string; itemValue?: string; itemLabel?: string; required?: boolean; rules?: UseControllerProps['rules']; name: TName; parseError?: (error: FieldError) => ReactNode; minWidth?: number; menuMaxHeight?: number; menuMaxWidth?: number; helperText?: ReactNode; showChips?: boolean; preserveOrder?: boolean; control?: Control; showCheckbox?: boolean; formControlProps?: Omit; transform?: { input?: (value: PathValue) => TValue[]; output?: (event: SelectChangeEvent, child: ReactNode) => PathValue; }; inputLabelProps?: Omit; }; type MultiSelectElementComponent = = FieldPath, TValue = unknown>(props: MultiSelectElementProps & RefAttributes) => ReactElement; declare const _default$7: MultiSelectElementComponent; type PasswordElementProps = FieldPath, TValue = unknown> = TextFieldElementProps & { iconColor?: IconButtonProps['color']; renderIcon?: (password: boolean) => ReactNode; }; type PasswordElementComponent = = FieldPath>(props: PasswordElementProps & RefAttributes) => ReactElement; declare const _default$6: PasswordElementComponent; type RadioButtonGroupProps = FieldPath, TValue = unknown> = { rules?: UseControllerProps['rules']; options: TValue[]; helperText?: ReactNode; name: TName; required?: boolean; parseError?: (error: FieldError) => ReactNode; label?: string; labelKey?: string; valueKey?: string; disabledKey?: string; type?: 'number' | 'string'; emptyOptionLabel?: string; onChange?: (value: TValue | string | undefined) => void; returnObject?: boolean; row?: boolean; control?: Control; labelProps?: Omit; formLabelProps?: Omit; radioProps?: RadioProps; disabled?: boolean; transform?: { input?: (value: PathValue) => TValue; output?: (value: TValue | string | undefined) => PathValue; }; }; type RadioButtonGroupComponent = = FieldPath, TValue = unknown>(props: RadioButtonGroupProps & RefAttributes) => ReactElement; declare const _default$5: RadioButtonGroupComponent; type SwitchElementProps = FieldPath, TValue = unknown> = Omit & { name: TName; control?: Control; switchProps?: SwitchProps; transform?: { input?: (value: PathValue) => TValue; output?: (event: ChangeEvent, checked: boolean) => PathValue; }; }; type SwitchElementComponent = = FieldPath, TValue = unknown>(props: SwitchElementProps & RefAttributes) => ReactElement; declare const _default$4: SwitchElementComponent; type PasswordRepeatElementProps = FieldPath, TPasswordName extends FieldPath = FieldPath, TConfirmPasswordValue = unknown> = PasswordElementProps & { passwordFieldName: TPasswordName; customInvalidFieldMessage?: string; }; type PasswordRepeatElementComponent = = FieldPath, TPasswordName extends FieldPath = FieldPath>(props: PasswordRepeatElementProps & RefAttributes) => ReactElement; declare const _default$3: PasswordRepeatElementComponent; type AutocompleteElementProps = FieldPath> = { name: TName; control?: Control; options: TValue[]; loading?: boolean; multiple?: Multiple; loadingIndicator?: ReactNode; rules?: UseControllerProps['rules']; parseError?: (error: FieldError) => ReactNode; required?: boolean; label?: TextFieldProps['label']; showCheckbox?: boolean; matchId?: boolean; autocompleteProps?: Omit, 'name' | 'options' | 'loading' | 'renderInput'>; textFieldProps?: Omit; transform?: { input?: (value: PathValue) => AutocompleteValue; output?: (event: SyntheticEvent, value: AutocompleteValue, reason: AutocompleteChangeReason, details?: AutocompleteChangeDetails) => PathValue; }; }; type AutocompleteElementComponent = = FieldPath>(props: AutocompleteElementProps & RefAttributes) => ReactElement; declare const _default$2: AutocompleteElementComponent; type SliderElementProps = FieldPath> = Omit & { name: TName; control?: Control; label?: string; rules?: UseControllerProps['rules']; parseError?: (error: FieldError) => ReactNode; required?: boolean; formControlProps?: FormControlProps; transform?: { input?: (value: PathValue) => number | number[] | undefined; output?: (event: Event, value: number | number[] | undefined, activeThumb: number) => PathValue; }; }; type SliderElementComponent = = FieldPath>(props: SliderElementProps & RefAttributes) => ReactElement; declare const _default$1: SliderElementComponent; type SingleToggleButtonProps = Omit & { id: number | string; label: ReactNode; }; type ToggleButtonGroupElementProps = FieldPath, TValue = unknown> = ToggleButtonGroupProps & { required?: boolean; label?: string; rules?: UseControllerProps['rules']; name: TName; parseError?: (error: FieldError) => ReactNode; control?: Control; options: SingleToggleButtonProps[]; formLabelProps?: FormLabelProps; helperText?: string; enforceAtLeastOneSelected?: boolean; transform?: { input?: (value: PathValue) => TValue; output?: (...event: any[]) => PathValue; }; }; declare function ToggleButtonGroupElement = FieldPath, TValue = unknown>(props: ToggleButtonGroupElementProps): react_jsx_runtime.JSX.Element; type TextareaAutosizeElementProps = FieldPath, TValue = unknown> = Omit & { rules?: UseControllerProps['rules']; name: TName; parseError?: (error: FieldError) => ReactNode; control?: Control; inputProps?: ComponentPropsWithoutRef<'textarea'>; resizeStyle?: CSSProperties['resize']; transform?: { input?: (value: PathValue) => TValue; output?: (event: ChangeEvent) => PathValue; }; }; type TextareaAutosizeElementComponent = = FieldPath, TValue = unknown>(props: TextareaAutosizeElementProps & RefAttributes) => ReactElement; declare const _default: TextareaAutosizeElementComponent; type FormErrorProviderProps = { onError: (error: FieldError) => ReactNode; }; declare function FormErrorProvider({ onError, children, }: PropsWithChildren): react_jsx_runtime.JSX.Element; declare const useFormError: () => (error: FieldError) => ReactNode; type UseTransformOptions = FieldPath, TValue = unknown> = { value: UseControllerReturn['field']['value']; onChange: UseControllerReturn['field']['onChange']; transform?: { input?: (value: PathValue) => TValue; output?: (...event: any[]) => PathValue; }; }; type UseTransformReturn = FieldPath, TValue = unknown> = { value: TValue; onChange: UseControllerReturn['field']['onChange']; }; declare function useTransform = FieldPath, TValue = unknown>(options: UseTransformOptions): UseTransformReturn; export { _default$2 as AutocompleteElement, type AutocompleteElementProps, _default$8 as CheckboxButtonGroup, type CheckboxButtonGroupProps, _default$a as CheckboxElement, type CheckboxElementProps, FormContainer, type FormContainerProps, FormErrorProvider, type FormErrorProviderProps, _default$7 as MultiSelectElement, type MultiSelectElementProps, _default$6 as PasswordElement, type PasswordElementProps, _default$3 as PasswordRepeatElement, type PasswordRepeatElementProps, _default$5 as RadioButtonGroup, type RadioButtonGroupProps, _default$9 as SelectElement, type SelectElementProps, _default$1 as SliderElement, type SliderElementProps, _default$4 as SwitchElement, type SwitchElementProps, _default$b as TextFieldElement, type TextFieldElementProps, _default as TextareaAutosizeElement, type TextareaAutosizeElementProps, ToggleButtonGroupElement, type ToggleButtonGroupElementProps, type UseTransformOptions, type UseTransformReturn, useFormError, useTransform };