import { ReactElement } from "react"; import { GroupBase } from "react-select"; import { CreatableProps as ReactCreatableProps } from "react-select/creatable"; import { SelectProps } from "./useSelect"; export interface CreatableSelectOption { label: string; value: TValue; isDisabled?: boolean; } export type CreatableSelectExtraProps = GroupBase> = Pick, "allowCreateWhileLoading" | "onCreateOption">; export interface CreatableSelectProps = GroupBase> extends SelectProps, CreatableSelectExtraProps { } /** * CreatableSelects are input components used to choose a value from a set. * /** * CreatableSelect is a component that allows users to select from existing options or create new ones. * * @template TOption - The option type. * @template TIsAsync - Indicates whether the component is asynchronous. * @template TIsMulti - Indicates whether multiple selections are allowed. * @template TGroup - The group base type for options. * @param {CreatableSelectProps} props - The props to configure the CreatableSelect component. * @returns {ReactElement} A ReactElement rendering the CreatableSelect. */ export declare const CreatableSelect: = GroupBase>(props: CreatableSelectProps) => ReactElement;