///
import { SelectOption, SelectProps } from '../Select/Select';
export interface CategorizedSelectOption extends SelectOption {
category: string;
}
declare type AddNewOptionFormValues = {
name?: string;
category?: string;
};
export interface CategorizedSelectProps {
selectProps?: Omit;
items: CategorizedSelectOption[];
creatableOption?: {
allowableCategoriesForNewOption?: (labels: string[]) => string[];
validateNewOption?: (formValue: AddNewOptionFormValues) => {
[fieldName: string]: string;
};
creatableOptionLabel?: string;
};
value?: string;
onChange?: (selectedItem: CategorizedSelectOption) => void;
}
export declare function CategorizedSelect(props: CategorizedSelectProps): JSX.Element;
export {};