import { type ReactNode } from "react"; import type { AutocompleteChangeDetails, AutocompleteChangeReason, AutocompleteProps } from "../Autocomplete"; import type { ChipTypeMap } from "../Chip"; import type { FormControlProps } from "../FormControl/index.js"; import { type FormHelperTextProps } from "../FormHelperText/index.js"; export type FormLabelAutocompleteFieldProps = Omit & { /** * The label content. */ label?: React.ReactNode; /** * Props applied to the * [`FormHelperText`](/material-ui/api/form-helper-text/) element. */ FormHelperTextProps?: Partial; /** * The helper text content. */ helperText?: React.ReactNode; defaultValue?: AutocompleteProps["defaultValue"]; disableClearable: AutocompleteProps["disableClearable"]; disabled?: AutocompleteProps["disabled"]; filterOptions?: AutocompleteProps["filterOptions"]; getOptionLabel: AutocompleteProps["getOptionLabel"]; onBlur?: AutocompleteProps["onBlur"]; onChange?: (event: React.SyntheticEvent, newValue: T | NonNullable | (string | T)[] | null, reason: AutocompleteChangeReason, details: AutocompleteChangeDetails | undefined) => void; onFocus?: AutocompleteProps["onFocus"]; options: AutocompleteProps["options"]; value: AutocompleteProps["value"]; AutocompleteProps?: Partial>; }; /** * Like TextField, but uses a FormLabel instead of an InputLabel. Also allows * for inline help. */ declare const FormLabelAutocompleteField: (props: FormLabelAutocompleteFieldProps) => ReactNode; export default FormLabelAutocompleteField;