/** * Create a key observer. * * @returns {object} */ export declare function createKeysObserver(): { /** * Press a key. * * @param {string} key Names of the shortcut's keys, * (coming from [`KeyboardEvent.key`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values)), * in lowercase or uppercase, unified across browsers */ press(key: string): void; /** * Release a pressed key. * * @param {string} key Names of the shortcut's keys, * (coming from [`KeyboardEvent.key`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values)), * in lowercase or uppercase, unified across browsers */ release(key: string): void; /** * Release all pressed keys. */ releaseAll(): void; /** * Check if a key is pressed. * * @param {string} key Names of the shortcut's keys, * (coming from [`KeyboardEvent.key`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values)), * in lowercase or uppercase, unified across browsers * @returns {boolean} */ isPressed(key: string): boolean; };