import { RegisterOptions } from 'react-hook-form'; import { StylesConfig } from 'react-select'; import { DisableMode } from '../formElements/common/common'; import { FormatOptionLabelContext, OptionType } from './SingleSelect'; export interface SingleSelectFieldValue { allOptions: string[]; selectedOption?: string; } export interface SingleSelectFieldProps { defaultValue: SingleSelectFieldValue; name: string; customStyleConfig?: StylesConfig; isDisabled?: DisableMode; placeholder?: string; registerOptions?: RegisterOptions; /** See `SingleSelect.showChevron`. */ showChevron?: boolean; style?: React.CSSProperties; /** See `SingleSelect.formatOptionLabel`. */ formatOptionLabel?: (option: OptionType, meta: { context: FormatOptionLabelContext; }) => React.ReactNode; /** See `SingleSelect.isOptionDisabled`. */ isOptionDisabled?: (value: string) => boolean; valueToLabel?: (value: string) => string; } declare const SingleSelectField: ({ name, registerOptions, defaultValue, placeholder, isDisabled, style, customStyleConfig, valueToLabel, formatOptionLabel, showChevron, isOptionDisabled, }: SingleSelectFieldProps) => import("react/jsx-runtime").JSX.Element; export default SingleSelectField;