import { AutocompleteProps as MuiAutocompleteProps } from '@mui/material/Autocomplete'; import { FieldProps } from 'react-final-form'; import { UseAutocompleteProps as MuiUseAutocompleteProps } from '@mui/material'; import { ShowErrorFunc } from './ErrorMessage'; import { ReactNode } from 'react'; import { TextFieldProps as MuiTextFieldProps } from '@mui/material/TextField'; export declare type AutocompleteData = { [key: string]: any | null; }; export interface AutocompleteProps extends Omit & MuiUseAutocompleteProps, 'renderInput'> { name: string; label: ReactNode; helperText?: string; required?: boolean; getOptionValue?: (option: T) => any; options: T[]; fieldProps?: Partial>; textFieldProps?: Partial; showError?: ShowErrorFunc; } export declare function Autocomplete(props: AutocompleteProps): JSX.Element;