import { ReactNode } from 'react'; import { AutocompleteProps } from '@mui/material'; export interface FieldTypeOneToManyProps extends Omit, 'onOpen' | 'renderInput'> { label?: string; helperText?: string; placeholder?: string; error?: boolean; required?: boolean; /** * 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 FieldTypeOneToMany: ({ label, helperText, placeholder, error, onOpen, options, required, ...props }: FieldTypeOneToManyProps) => JSX.Element; export default FieldTypeOneToMany;