1 |
|
2 | import { ListAction, ListActionContext } from '../useList';
|
3 | import { ActionWithContext } from '../utils/useControllableReducer.types';
|
4 | import { MenuInternalState } from './useMenu.types';
|
5 | export type MenuActionContext = ListActionContext<string> & {
|
6 | listboxRef: React.RefObject<HTMLElement>;
|
7 | };
|
8 | export declare function menuReducer(state: MenuInternalState, action: ActionWithContext<ListAction<string>, MenuActionContext>): MenuInternalState | {
|
9 | open: boolean;
|
10 | highlightedValue: string | null;
|
11 | selectedValues: string[];
|
12 | };
|