/** * Modifier key should be Command on macOS and Ctrl for Windows/Linux. * * Using {@link isMac} instead of Mousetrap's native `'mod'` so it's more predictable. */ export declare const transformCode: (code: string | string[]) => string | string[]; type ParsedCode = { keyCode: number; shiftKey: boolean; ctrlKey: boolean; altKey: boolean; metaKey: boolean; }; /** * parse a key code given as a string * into an object of expectations used * to match keystrokes. * @param {String} input a string of a keycode combination * @returns {Object} expectations * @example * parseCode('a'); */ export declare const parseCode: (input: string) => ParsedCode; /** * Format a key code combination into an array of shortest-possible * key identifiers * @param {Object} input parsed keybinding * @returns {Array} array of identifiers * @example * formatCode(parseCode('a')); */ export declare const formatCode: (input: ParsedCode) => string[]; export declare const formatCodeForDisplay: (code: string) => string[]; export {};