/** * A custom React Hook that listens for a key press event and returns the key pressed. * * The hook listens for the 'keydown' event on the window object. When a key is pressed, it updates the state with the key pressed. * The state is cleared after 1 millisecond. * * @return {object} An object with one property: `key` (the key that was pressed). * * @example * // In a component... * const { key } = useKeyDetect(); * // `key` is the key that was pressed */ export declare function useKeyDetect(): { key: string; };