import { type MultipleSelectBoxOption, type AllowedValueTypes } from '../MultipleSelectBox.types'; type UseCreateOptionProps = Record> = { enableCreateOption: boolean; enableSearchOptions: boolean; searchText: string; filteredOptions: MultipleSelectBoxOption[]; onCreateOption?: (text: string) => Promise | void; }; type UseCreateOptionReturn = { isCreateOptionVisible: boolean; isCreating: boolean; createError: boolean; handleCreateOption: () => void; }; /** * Custom hook to manage the "Create New Option" feature for MultipleSelectBox. * * Handles visibility logic (shown only when search text has no exact match), * loading state while the async callback is in flight, and error state when * the callback rejects. */ export declare const useCreateOption: = Record>({ enableCreateOption, enableSearchOptions, searchText, filteredOptions, onCreateOption, }: UseCreateOptionProps) => UseCreateOptionReturn; export {};