/** * Returns an HTML menu item with a label and grey keyboard shortcut. * * @param labelText The text of the mneu item. * @param action The identifier of an action to use the keyboard shortcut of. * @returns A nicely formatted menu item. */ export declare function getMenuItem(labelText: string, action: string): HTMLElement; /** * Find the primary shortcut for this platform and return it as single string * in a short user facing format. * * @param action The action name, e.g. "cut". * @returns The formatted shortcut. */ export declare function getShortActionShortcut(action: string): string; /** * Find the relevant shortcuts for the given action for the current platform. * Keys are returned in a long user facing format. * * @param action The action name, e.g. "cut". * @returns The formatted shortcuts as individual keys. */ export declare function getLongActionShortcutsAsKeys(action: string): string[][]; /** * Convert the first character to uppercase. * * @param str String. * @returns The string in title case. */ export declare function upperCaseFirst(str: string): string; //# sourceMappingURL=shortcut_formatting.d.ts.map