/** * Navigation direction for keyboard control */ export type NavigationDirection = 'up' | 'down'; /** * Calculates the next focused index for circular navigation. * * @param currentIndex - Current focused index * @param itemCount - Total number of items * @param direction - Navigation direction ('up' or 'down') * @returns The new focused index with circular wrapping */ export declare function getNextFocusedIndex(currentIndex: number, itemCount: number, direction: NavigationDirection): number; /** * Determines if a key is a navigation key that should be handled. * * @param key - The keyboard event key * @returns True if the key is a navigation key */ export declare function isNavigationKey(key: string): key is 'Escape' | 'ArrowDown' | 'ArrowUp' | 'Enter'; //# sourceMappingURL=keyboardNavigation.d.ts.map