import { MenuModelRegistry } from "@theia/core"; import { GalileoIdeStorjWidgetWidget } from "./galileo-ide-storj-widget-widget"; import { AbstractViewContribution, ApplicationShell, FrontendApplication } from "@theia/core/lib/browser"; import { Command, CommandRegistry } from "@theia/core/lib/common/command"; import { FrontendApplicationStateService } from "@theia/core/lib/browser/frontend-application-state"; export declare const GalileoIdeStorjWidgetCommand: Command; export declare class GalileoIdeStorjWidgetContribution extends AbstractViewContribution { protected readonly stateService: FrontendApplicationStateService; protected readonly sidePanelHandler: ApplicationShell; /** * `AbstractViewContribution` handles the creation and registering * of the widget including commands, menus, and keybindings. * * We can pass `defaultWidgetOptions` which define widget properties such as * its location `area` (`main`, `left`, `right`, `bottom`), `mode`, and `ref`. * */ constructor(); onStart(app: FrontendApplication): Promise; /** * Example command registration to open the widget from the menu, and quick-open. * For a simpler use case, it is possible to simply call: ```ts super.registerCommands(commands) ``` * * For more flexibility, we can pass `OpenViewArguments` which define * options on how to handle opening the widget: * ```ts toggle?: boolean activate?: boolean; reveal?: boolean; ``` * * @param commands */ registerCommands(commands: CommandRegistry): void; /** * Example menu registration to contribute a menu item used to open the widget. * Default location when extending the `AbstractViewContribution` is the `View` main-menu item. * * We can however define new menu path locations in the following way: ```ts menus.registerMenuAction(CommonMenus.HELP, { commandId: 'id', label: 'label' }); ``` * * @param menus */ registerMenus(menus: MenuModelRegistry): void; } //# sourceMappingURL=galileo-ide-storj-widget-contribution.d.ts.map