import { ProgressOptions } from "vscode"; import { ExtHostProgressShape } from "./extHost.protocol.js"; import { Progress, IProgressStep } from "../../../platform/progress/common/progress.js"; import { CancellationToken } from "../../../base/common/cancellation.js"; import { IExtensionDescription } from "../../../platform/extensions/common/extensions.js"; import { INotificationSource } from "../../../platform/notification/common/notification.js"; import { IExtHostRpcService } from "./extHostRpcService.js"; export interface IExtHostProgress extends ExtHostProgress { } export declare const IExtHostProgress: import("../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export declare class ExtHostProgress implements ExtHostProgressShape { readonly _serviceBrand: undefined; private _proxy; private _handles; private _mapHandleToCancellationSource; constructor(extHostRpc: IExtHostRpcService); withProgress(extension: IExtensionDescription, options: ProgressOptions, task: (progress: Progress, token: CancellationToken) => Thenable): Promise; withProgressFromSource(source: string | INotificationSource, options: ProgressOptions, task: (progress: Progress, token: CancellationToken) => Thenable): Promise; private _withProgress; $acceptProgressCanceled(handle: number): void; }