import { FC, ReactElement } from 'react'; declare type KeyboardCallback = (key: number) => void; export interface KeyboardProps { /** * array of the keys to be trapped */ keys: number[]; /** * to where to attach the event handler */ target?: 'children' | 'document' | 'window'; /** * callbal on key down */ onKeyDown: KeyboardCallback; /** * child element to the key event handler will be attached to if target = 'children' */ children?: ReactElement; } export declare const LEFT_ARROW = 37; export declare const UP_ARROW = 38; export declare const RIGHT_ARROW = 39; export declare const DOWN_ARROW = 40; export declare const BACKSPACE = 8; export declare const TAB = 9; export declare const RETURN = 13; export declare const ESC = 27; export declare const SPACE = 32; /** * Componet to monitor keystrokes. Can attach to child, document or window. */ export declare const Keyboard: FC; export {};