import { ProgressOptions } from 'vscode';
import { IRPCProtocol } from '@opensumi/ide-connection';
import { CancellationToken, IProgressStep, Progress } from '@opensumi/ide-core-common';
import { IExtHostProgress, IExtensionDescription } from '../../../common/vscode';
export declare class ExtHostProgress implements IExtHostProgress {
    private rpcProtocol;
    private _handles;
    private _proxy;
    private _mapHandleToCancellationSource;
    constructor(rpcProtocol: IRPCProtocol);
    withProgress<R>(extension: IExtensionDescription, options: ProgressOptions, task: (progress: Progress<IProgressStep>, token: CancellationToken) => Thenable<R>): Thenable<R>;
    private _withProgress;
    $acceptProgressCanceled(handle: number): void;
}
//# sourceMappingURL=ext.host.progress.d.ts.map