UNPKG

445 BTypeScriptView Raw
1import { ListAction, ListActionContext } from '../useList';
2import { ActionWithContext } from '../utils/useControllableReducer.types';
3import { SelectAction, SelectInternalState } from './useSelect.types';
4export declare function selectReducer<OptionValue>(state: SelectInternalState<OptionValue>, action: ActionWithContext<ListAction<OptionValue> | SelectAction<OptionValue>, ListActionContext<OptionValue>>): SelectInternalState<OptionValue>;