import CommandService from '../CommandService'; interface MenuItem { id: string; label: string; click: Function; role?: any; accelerator?: string; } interface MenuItems { [key: string]: MenuItem; } interface MenuItemProps { [key: string]: any; } export default class MenuUtils { private service_; private menuItemCache_; private menuItemPropsCache_; constructor(service: CommandService); private get service(); private get keymapService(); commandToMenuItem(commandName: string, onClick: Function): MenuItem; commandToStatefulMenuItem(commandName: string, ...args: any[]): MenuItem; commandsToMenuItems(commandNames: string[], onClick: Function): MenuItems; commandsToMenuItemProps(commandNames: string[], whenClauseContext: any): MenuItemProps; } export {};