interface ShortcutSpec { /** A keyboard shortcut key */ key: string; /** A name describing this shortcut */ name?: string; /** Action attributes that belong to this shortcut */ attrs?: any; } /** * A class that defines a keyboard shortcut. */ export default class Shortcut { private spec; constructor(spec: ShortcutSpec); /** @returns shortcut's name if defined */ get name(): string | undefined; /** @returns shortcut's keyboard key */ get key(): string; /** @returns shortcut's attributes if any */ get attrs(): any | undefined; /** @returns shortcut's UI friendly key */ getFriendlyKey(): string; private capitalizeString; } export {};