/** * Keyboard shortcut context for global shortcut state management * * @module contexts/KeyboardShortcutContext */ import React, { ReactNode } from 'react'; import { KeyboardShortcutContextValue, ShortcutMap } from '../types/keyboard'; /** * Props for KeyboardShortcutProvider */ export interface KeyboardShortcutProviderProps { /** Child components */ children: ReactNode; /** Initial shortcuts to register */ initialShortcuts?: ShortcutMap; /** Whether shortcuts are enabled by default */ defaultEnabled?: boolean; } /** * Provider component for keyboard shortcut context * * @example * ```tsx * * * * ``` */ export declare function KeyboardShortcutProvider({ children, initialShortcuts, defaultEnabled, }: KeyboardShortcutProviderProps): React.ReactElement; /** * Hook to access keyboard shortcut context * * @throws Error if used outside of KeyboardShortcutProvider * @returns Keyboard shortcut context value * * @example * ```tsx * const { shortcuts, registerShortcut, showHelp, setShowHelp } = useKeyboardShortcutContext(); * ``` */ export declare function useKeyboardShortcutContext(): KeyboardShortcutContextValue; /** * Optional hook to access keyboard shortcut context (returns undefined if not in provider) * * @returns Keyboard shortcut context value or undefined * * @example * ```tsx * const context = useKeyboardShortcutContextOptional(); * if (context) { * // Use context * } * ``` */ export declare function useKeyboardShortcutContextOptional(): KeyboardShortcutContextValue | undefined; //# sourceMappingURL=KeyboardShortcutContext.d.ts.map