/** * Hook that detects when a specific key is pressed * * @param targetKey - The key to detect (e.g., 'Enter', 'Escape', 'a') * @param handler - Function to call when key is pressed * @param options - Options for key press handling * * @example * ```tsx * const Component = () => { * useKeyPress('Escape', () => { * console.log('Escape pressed'); * }); * return
Press Escape
; * }; * ``` */ export declare function useKeyPress(targetKey: string, handler: (event: KeyboardEvent) => void, options?: { event?: 'keydown' | 'keyup'; }): void; //# sourceMappingURL=useKeyPress.d.ts.map