import React from 'react'; /** * Matches sidebar item focus targets that take part in the roving tabindex * (rendered by `SidebarItemButtonNext` when it is within the item list and not * inert). The attribute value is the item's `itemKey`. */ export declare const FOCUS_ITEM_SELECTOR = "[data-sidebar-focus-item]"; /** * Roving tabindex for the sidebar item list. The whole list is a single tab * stop: exactly one item is tabbable (the selected item, or its closest * visible ancestor menu, or the first item), and `ArrowUp`/`ArrowDown`/`Home`/ * `End` move focus between the visible items. Items render with * `tabIndex={-1}`, the hook promotes the current one to `0` imperatively. * * @param selectedPath - the current selected item path, leaf last. */ export declare const useRovingTabIndex: (selectedPath: string[]) => { containerRef: React.RefObject; containerProps: { onFocus: (event: React.FocusEvent) => void; onBlur: (event: React.FocusEvent) => void; onKeyDown: (event: React.KeyboardEvent) => void; }; }; //# sourceMappingURL=useRovingTabIndex.d.ts.map