import { CommandService, DisposableCollection, MenuNode } from '@theia/core'; import { Message } from '@theia/core/shared/@lumino/messaging'; import * as React from '@theia/core/shared/react'; import { ContextMenuRenderer, ReactWidget } from '@theia/core/lib/browser'; import { ScmService } from './scm-service'; import { ScmActionButton } from './scm-provider'; import { LabelParser } from '@theia/core/lib/browser/label-parser'; import { BrowserMenuNodeFactory } from '@theia/core/lib/browser/menu/browser-menu-node-factory'; export declare class ScmActionButtonWidget extends ReactWidget { static ID: string; protected readonly scmService: ScmService; protected readonly commandService: CommandService; protected readonly contextMenuRenderer: ContextMenuRenderer; protected readonly labelParser: LabelParser; protected readonly menuNodeFactory: BrowserMenuNodeFactory; protected readonly toDisposeOnRepositoryChange: DisposableCollection; constructor(); protected onAfterAttach(msg: Message): void; protected refreshOnRepositoryChange(): void; protected render(): React.ReactNode; /** * Create the container attributes for the widget. */ protected createContainerAttributes(): React.HTMLAttributes; protected renderButton(): React.ReactNode; protected handleExecuteCommand: (commandId: string, args: unknown[]) => void; protected handleShowSecondaryMenu: (event: React.MouseEvent, actionButton: ScmActionButton) => void; protected buildMenuGroupsWithCommands(actionButton: ScmActionButton): MenuNode[]; protected renderLabel: (text: string) => React.ReactNode[]; protected stripIcons(text: string): string; } export declare namespace ScmActionButtonWidget { namespace Styles { const ACTION_BUTTON = "theia-scm-action-button"; const ACTION_BUTTON_SECONDARY = "theia-scm-action-button-secondary"; const ACTION_BUTTON_DIVIDER = "theia-scm-action-button-divider"; const ACTION_BUTTON_DIVIDER_DISABLED = "theia-scm-action-button-divider-disabled"; const ACTION_BUTTON_CONTAINER = "theia-scm-action-button-container"; } } //# sourceMappingURL=scm-action-button-widget.d.ts.map