export interface UseKeyboardNavigationParams { mode: 'modal' | 'embed'; currentIndex: number; totalFiles: number; onNavigate?: (index: number) => void; onClose?: () => void; rootRef?: React.RefObject; } /** * 键盘导航 hook * - modal 模式:监听 window 的 keydown 事件 * - embed 模式:仅监听根容器的 keydown 事件(需要容器获得焦点) */ export declare function useKeyboardNavigation({ mode, currentIndex, totalFiles, onNavigate, onClose, rootRef, }: UseKeyboardNavigationParams): void; //# sourceMappingURL=useKeyboardNavigation.d.ts.map