import { Disposable } from "../../../../base/common/lifecycle.js"; import { IActivityService } from "../../../services/activity/common/activity.service.js"; import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js"; import { IOpenerService } from "../../../../platform/opener/common/opener.service.js"; import { IWorkbenchContribution } from "../../../common/contributions.js"; import { IStorageService } from "../../../../platform/storage/common/storage.service.js"; import { IUpdateService } from "../../../../platform/update/common/update.service.js"; import { INotificationService } from "../../../../platform/notification/common/notification.service.js"; import { IDialogService } from "../../../../platform/dialogs/common/dialogs.service.js"; import { IBrowserWorkbenchEnvironmentService } from "../../../services/environment/browser/environmentService.service.js"; import { IConfigurationService } from "../../../../platform/configuration/common/configuration.service.js"; import { RawContextKey } from "../../../../platform/contextkey/common/contextkey.js"; import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js"; import { MenuId } from "../../../../platform/actions/common/actions.js"; import { IHostService } from "../../../services/host/browser/host.service.js"; import { IProductService } from "../../../../platform/product/common/productService.service.js"; import { IDefaultAccountService } from "../../../../platform/defaultAccount/common/defaultAccount.service.js"; export declare const CONTEXT_UPDATE_STATE: RawContextKey; export declare const MAJOR_MINOR_UPDATE_AVAILABLE: RawContextKey; export declare function showReleaseNotesInEditor(instantiationService: IInstantiationService, version: string, useCurrentFile: boolean): Promise; /** * Appends update-related menu items to the given menu. This registers menu items * for all update states (idle, checking, downloading, etc.) that show the current * update status. The underlying commands (`update.check`, `update.restart`, etc.) * must be registered separately. */ export declare function appendUpdateMenuItems(menuId: MenuId, group: string): void; export declare class ProductContribution implements IWorkbenchContribution { private static readonly KEY; constructor(storageService: IStorageService, instantiationService: IInstantiationService, notificationService: INotificationService, environmentService: IBrowserWorkbenchEnvironmentService, openerService: IOpenerService, configurationService: IConfigurationService, hostService: IHostService, productService: IProductService); } export declare class UpdateContribution extends Disposable implements IWorkbenchContribution { private readonly instantiationService; private readonly dialogService; private readonly updateService; private readonly activityService; private readonly contextKeyService; private readonly productService; private readonly hostService; private state; private readonly badgeDisposable; private updateStateContextKey; private majorMinorUpdateAvailableContextKey; constructor(storageService: IStorageService, instantiationService: IInstantiationService, dialogService: IDialogService, updateService: IUpdateService, activityService: IActivityService, contextKeyService: IContextKeyService, productService: IProductService, hostService: IHostService); private onUpdateStateChange; private updateBadge; private registerGlobalActivityActions; } export declare class SwitchProductQualityContribution extends Disposable implements IWorkbenchContribution { private readonly productService; private readonly environmentService; constructor(productService: IProductService, environmentService: IBrowserWorkbenchEnvironmentService); private registerGlobalActivityActions; } export declare class DefaultAccountUpdateContribution extends Disposable implements IWorkbenchContribution { #private; private readonly updateService; private readonly defaultAccountService; private readonly storageService; private static readonly STORAGE_KEY; private throttler; constructor(updateService: IUpdateService, defaultAccountService: IDefaultAccountService, storageService: IStorageService); private refresh; private doRefresh; }