import React from 'react'; export declare type DropdownContextValues = { /** * Whetherthe dropdown menu is open or not */ open: boolean; /** * Toggle dropdown menu open/close */ toggle: () => void; /** * Toggle dropdown menu open/close on dropdown item */ itemToggle: boolean; /** * Set spesific open state of the dropdown menu */ setMenuOpen: (open: boolean) => void; /** * Reference to the dropdown menu element */ menuRef: React.RefObject; /** * Reference to the container of the entire dropdown wrapper */ dropdownRef: React.RefObject; /** * The indext of the current active DropdownItem. * Only clickable items can be highlighted * -1 indicates no highlighted item */ highlightIndex: number; /** * Set the index of the highlighted element */ setHighlightIndex: (index: number) => void; /** * The highest index of any item that can be highlighted. * This is used to know when the highlighted index should * be set back to 0 for circular navigation, * and prevent navigation to non-existing elements */ maxHighlightIndex: number; /** * All dropdown items / content of the dropdown menu */ allItems: React.ReactNode; }; export declare const DropdownContext: React.Context; export declare const useDropdownContext: () => DropdownContextValues;