///
import { InjectedFieldProps } from '../Field/InjectedFieldProps';
import { GroupProps } from '../Group';
export interface SelectOption {
/** Value for the select. This will be sent to the API. */
value: (TValue extends Array ? P : TValue) | undefined;
/** Label for the select. This is displayed to the user. */
label: string;
}
interface OptionsApiResult {
result?: Partial>[];
}
interface OptionsUseServiceResult {
loading?: boolean;
resp?: Partial>[] | OptionsApiResult | null;
error?: any;
}
export interface SelectGroupProps extends InjectedFieldProps, Omit {
/** Options for the dropdown. Includes the label and value. */
options: SelectOption[] | OptionsUseServiceResult;
/** Whether the user should be able to have multiple values selected. */
multiple: TValue extends Array ? true : false;
/** Text diplayed when no value is selected. */
placeholder?: string;
}
/** Generic select dropdown. Uses [react-select](https://react-select.com/home). */
export default function SelectGroup({ input, meta, className, required, disabled, options, multiple, placeholder, ...rest }: SelectGroupProps): JSX.Element;
export {};