import { ListAction, ListActionContext } from '../useList'; import { ActionWithContext } from '../../../utils/hooks/useControllableReducer.types'; import { MenuInternalState } from './useMenu.types'; export type MenuActionContext = ListActionContext & { listboxRef: React.RefObject; }; export declare function menuReducer(state: MenuInternalState, action: ActionWithContext, MenuActionContext>): MenuInternalState | { open: boolean; highlightedValue: string; selectedValues: string[]; };