import { ReactNode } from 'react'; import { AutocompleteProps } from '@mui/material'; export interface FieldTypeOneToOneProps extends Omit, 'onOpen' | 'renderInput'> { label?: string; helperText?: string; placeholder?: string; error?: boolean; required?: boolean; startAdornment?: ReactNode; endAdornment?: ReactNode; /** * Callback to be fired upon opening the dropdown */ onOpen?: () => Promise; /** * Structure for option */ options: { /** * Component to be rendered in the dropdown */ component: ReactNode | string; /** * Value of option */ value: string; /** * Label that should display in the input when selected */ inputLabel: string; }[]; } declare const FieldTypeOneToOne: ({ label, helperText, placeholder, error, onOpen, options, required, startAdornment, endAdornment, ...props }: FieldTypeOneToOneProps) => JSX.Element; export default FieldTypeOneToOne;