/** * Options for useKeyboard hook */ export type UseKeyboardOptions = { target?: 'window' | 'document' | HTMLElement; event?: 'keydown' | 'keyup' | 'keypress'; }; /** * Hook that handles keyboard events * * @param handler - Function to call on keyboard event * @param options - Options for keyboard handling * * @example * ```tsx * const Component = () => { * useKeyboard((event) => { * if (event.key === 'Escape') { * console.log('Escape pressed'); * } * }); * return
Press Escape
; * }; * ``` */ export declare function useKeyboard(handler: (event: KeyboardEvent) => void, options?: UseKeyboardOptions): void; //# sourceMappingURL=useKeyboard.d.ts.map