import { UseSelectState, UseSelectStateChange, UseSelectStateChangeOptions } from "downshift"; import { SelectOption } from "../shared/types"; interface UseDownShiftConfigProps { transformedOptions: T[]; selected: S; onChange: (newSelected: S) => void; inputHasFocus: boolean; onInputChange: ((newValue: string) => void) | undefined; } export declare function useDownshiftConfig({ selected, onChange, transformedOptions, onInputChange, inputHasFocus, }: UseDownShiftConfigProps): { items: T[]; selectedItem: S; circularNavigation: boolean; onSelectedItemChange: ({ selectedItem: changedItem, }: { selectedItem?: S; }) => void; onIsOpenChange: (newState: UseSelectStateChange) => void; stateReducer: (state: UseSelectState, actionAndChanges: UseSelectStateChangeOptions) => Partial>; }; export {};