import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri'; import { ContextKeyExpr } from '../contextkey/contextkey'; export interface ILocalizedString { value: string; original: string; } export interface ICommandAction { id: string; title: string | ILocalizedString; category?: string | ILocalizedString; iconLocation?: { dark: URI; light?: URI; }; precondition?: ContextKeyExpr; toggled?: ContextKeyExpr; } export interface IMenuItem { command: ICommandAction; alt?: ICommandAction; when?: ContextKeyExpr; group?: 'navigation' | string; order?: number; } export interface ISubmenuItem { title: string | ILocalizedString; submenu: MenuId; when?: ContextKeyExpr; group?: 'navigation' | string; order?: number; } export declare function isMenutItem(item: IMenuItem | ISubmenuItem): item is IMenuItem; export declare function isISubmenuItem(item: IMenuItem | ISubmenuItem): item is ISubmenuItem; export declare const enum MenuId { CommandPalette = 0, DebugBreakpointsContext = 1, DebugCallStackContext = 2, DebugConsoleContext = 3, DebugVariablesContext = 4, DebugWatchContext = 5, DebugTooBar = 6, EditorContext = 7, EditorTitle = 8, EditorTitleContext = 9, EmptyEditorGroupContext = 10, ExplorerContext = 11, MenubarAppearanceMenu = 12, MenubarDebugMenu = 13, MenubarEditMenu = 14, MenubarFileMenu = 15, MenubarGoMenu = 16, MenubarNewBreakpointMenu = 17, MenubarPreferencesMenu = 18, MenubarRecentMenu = 19, MenubarSelectionMenu = 20, MenubarSwitchEditorMenu = 21, MenubarSwitchGroupMenu = 22, MenubarTerminalMenu = 23, MenubarViewMenu = 24, OpenEditorContext = 25, ProblemsPanelContext = 26, SCMChangeContext = 27, SCMResourceContext = 28, SCMResourceGroupContext = 29, SCMResourceControl = 30, SCMTitle = 31, SearchContext = 32, StatusBarWindowIndicatorMenu = 33, TouchBarContext = 34, ViewItemContext = 35, ViewTitle = 36, CommentThreadTitle = 37, CommentThreadActions = 38, CommentTitle = 39, CommentActions = 40 } export interface IMenuActionOptions { args?: any; shouldForwardArgs?: boolean; }