import React, { ComponentProps } from 'react'; import { Select as JoySelect, type SelectProps as JoySelectProps } from '@mui/joy'; import FormControl from '../FormControl'; import FormLabel from '../FormLabel'; import FormHelperText from '../FormHelperText'; import { SelectValue } from '@mui/base'; export type { JoySelectProps }; export type { OptionProps } from '@mui/joy'; export type OptionType = { label: string; value: string | number; disabled?: boolean; secondaryText?: string; } | string | number; declare const Option: import("framer-motion").CustomDomComponent<{ color?: import("@mui/types").OverridableStringUnion | undefined; children?: React.ReactNode; disabled?: boolean | undefined; label?: string | React.ReactElement> | undefined; variant?: import("@mui/types").OverridableStringUnion | undefined; value: any; sx?: import("@mui/joy/styles/types").SxProps | undefined; } & import("@mui/joy").OptionSlotsAndSlotProps & Omit, HTMLLIElement>, "ref"> & { ref?: ((instance: HTMLLIElement | null) => void) | React.RefObject | null | undefined; }, "label" | "children" | "color" | "variant" | "sx" | "disabled" | "value" | keyof import("@mui/joy").OptionSlotsAndSlotProps>>; export { Option }; export type InferOptionValue = OptionValue extends { value: infer V; } ? V : OptionValue; export interface SelectProps extends Omit>, 'value' | 'onChange' | 'multiple' | 'slotProps'> { options: OptionValue[]; label?: string; helperText?: string; error?: boolean; slotProps?: ComponentProps>['slotProps'] & { formControl?: ComponentProps; formLabel?: ComponentProps; formHelperText?: ComponentProps; }; value?: SelectValue, Multiple>; onChange?: (event: Omit, 'target'> & { target: { name?: string; value: InferOptionValue; }; }, newValue: InferOptionValue) => void; multiple?: Multiple; } /** * @visibleName Select */ export declare function SelectInner(props: SelectProps, ref: React.Ref): React.JSX.Element; declare const Select: (props: SelectProps & { ref?: React.Ref; }) => React.ReactElement; export { Select };