import { OptionAccessor } from '../Shared/types'; import { SelectDropdownOptions } from './types'; interface UseSelectSearchConfig { options: T[]; optionLabel: OptionAccessor; dropdownOptions?: SelectDropdownOptions; } interface UseSelectSearchReturn { searchValue: string; filteredOptions: T[]; isControlledSearch: boolean; handleSearchChange: (value: string) => void; handleSearchClear: () => void; resetSearch: () => void; } declare function useSelectSearch({ options, optionLabel, dropdownOptions, }: UseSelectSearchConfig): UseSelectSearchReturn; export { useSelectSearch }; export type { UseSelectSearchConfig, UseSelectSearchReturn };