import type { CommandExecutionContext, CommandReturn } from "sprotty"; import { Command } from "sprotty"; import type { Action } from "sprotty-protocol"; import type { KeyState } from "./keyState.js"; /** * Action to update the key state */ export interface UpdateKeyStateAction extends Action { /** * Whether the shift key is pressed */ isShiftPressed?: boolean; /** * Whether the space key is pressed */ isSpacePressed?: boolean; } export declare namespace UpdateKeyStateAction { const KIND = "updateKeyState"; } /** * Command for UpdateKeyStateAction */ export declare class UpdateKeyStateCommand extends Command { static readonly KIND = "updateKeyState"; /** * The action to execute */ private action; /** * The key state to update */ protected readonly keyState: KeyState; execute(context: CommandExecutionContext): CommandReturn; undo(_context: CommandExecutionContext): CommandReturn; redo(_context: CommandExecutionContext): CommandReturn; } //# sourceMappingURL=updateKeyState.d.ts.map