import { BaseActionViewItem, IBaseActionViewItemOptions } from "../../../../base/browser/ui/actionbar/actionViewItems.js"; import { IManagedHoverContent, IManagedHoverOptions } from "../../../../base/browser/ui/hover/hover.js"; import { IAction } from "../../../../base/common/actions.js"; import { AnchorAlignment } from "../../../../base/common/layout.js"; import { Disposable } from "../../../../base/common/lifecycle.js"; import { IActionViewItemService } from "../../../../platform/actions/browser/actionViewItemService.service.js"; import { IMenuItem, MenuId } from "../../../../platform/actions/common/actions.js"; import { ICommandService } from "../../../../platform/commands/common/commands.service.js"; import { IConfigurationService } from "../../../../platform/configuration/common/configuration.service.js"; import { ContextKeyExpression } from "../../../../platform/contextkey/common/contextkey.js"; import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js"; import { IHoverService } from "../../../../platform/hover/browser/hover.service.js"; import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js"; import { IStorageService } from "../../../../platform/storage/common/storage.service.js"; import { ITelemetryService } from "../../../../platform/telemetry/common/telemetry.service.js"; import { IUpdateService } from "../../../../platform/update/common/update.service.js"; import { IWorkbenchContribution } from "../../../common/contributions.js"; import { IHostService } from "../../../services/host/browser/host.service.js"; import { IChatService } from "../../chat/common/chatService/chatService.service.js"; import { UpdateTooltip } from "./updateTooltip.js"; export declare function registerUpdateTitleBarMenuPlacement(menuId: MenuId, item?: Omit): void; export declare function getAdditionalUpdateTitleBarMenuWhen(when?: ContextKeyExpression): ContextKeyExpression; /** * Displays update status and actions in the title bar. */ export declare class UpdateTitleBarContribution extends Disposable implements IWorkbenchContribution { private readonly configurationService; private readonly hostService; private readonly storageService; private readonly context; private readonly tooltip; private state; private entry; private tooltipVisible; private tooltipFocused; constructor(actionViewItemService: IActionViewItemService, chatService: IChatService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, hostService: IHostService, instantiationService: IInstantiationService, storageService: IStorageService, updateService: IUpdateService); private createEntry; private onStateChange; } /** * Custom action view item for the update indicator in the title bar. */ export declare class UpdateTitleBarEntry extends BaseActionViewItem { private readonly anchorAlignment; private readonly tooltip; private readonly onDidShowTooltip; private readonly onUserDismissedTooltip; private readonly commandService; private readonly hoverService; private readonly telemetryService; private readonly updateService; private content; private tooltipFocusOnRender; private readonly visibleTooltip; constructor(action: IAction, options: IBaseActionViewItemOptions, anchorAlignment: AnchorAlignment, tooltip: UpdateTooltip, onDidShowTooltip: (focus: boolean) => void, onUserDismissedTooltip: () => void, commandService: ICommandService, hoverService: IHoverService, telemetryService: ITelemetryService, updateService: IUpdateService); render(container: HTMLElement): void; showTooltip(focus?: boolean): void; private focusTooltip; protected getHoverContents(): IManagedHoverContent; protected getHoverOptions(): IManagedHoverOptions; private runAction; private onStateChange; private renderProgressState; }