import type { ResourceText } from "./ResourceText.js"; /** * Declares a shortcut that belongs to this widget. * The user can override the keys via the widget's `$shortcuts` setting entry. */ export type WidgetShortcutDeclaration = { /** * Stable identifier for this shortcut (e.g. `"wm-focus-up"`). * Used as the key for user overrides in `$shortcuts`. */ id: string; /** * CLI command to execute when the shortcut is triggered (e.g. `["wm", "focus", "up"]`). */ command: Array; /** * Human-readable label shown in the shortcuts settings UI. */ label: ResourceText; /** * Optional longer description shown in the settings UI. */ description: ResourceText | null; /** * Default key combination (can be overridden by the user unless `readonly` is true). */ defaultKeys: Array; /** * If true, the user cannot change the key combination for this shortcut. */ readonly: boolean; }; //# sourceMappingURL=WidgetShortcutDeclaration.d.ts.map