import { IRPCProtocol } from '@opensumi/ide-connection';
import { BaseConnection } from '@opensumi/ide-connection/lib/common/connection';
import { Deferred, IExtensionProps, ILogger } from '@opensumi/ide-core-browser';
import { Disposable } from '@opensumi/ide-core-common';
import { IExtension, IExtensionWorkerHost } from '../common';
import { ActivatedExtensionJSON } from '../common/activator';
import { AbstractWorkerExtProcessService } from '../common/extension.service';
export declare class WorkerExtProcessService extends Disposable implements AbstractWorkerExtProcessService<IExtensionWorkerHost> {
    private readonly appConfig;
    protected readonly logger: ILogger;
    private readonly injector;
    ready: Deferred<void>;
    private _extHostUpdated;
    private extensions;
    protocol: IRPCProtocol;
    private apiFactoryDisposable;
    disposeApiFactory(): void;
    disposeProcess(): void;
    activate(ignoreCors?: boolean): Promise<IRPCProtocol>;
    activeExtension(extension: IExtension, isWebExtension: boolean): Promise<void>;
    private doActivateExtension;
    updateExtensionData(extensions: IExtension[]): Promise<void>;
    getExtension(extensionId: string): IExtension | undefined;
    $activateExtension(extensionPath: string): Promise<void>;
    $getExtensions(): Promise<IExtensionProps[]>;
    $getStaticServicePath(): Promise<string>;
    private createExtProcess;
    private initWorkerProtocol;
    connection: BaseConnection<Uint8Array>;
    private createProtocol;
    getActivatedExtensions(): Promise<ActivatedExtensionJSON[]>;
    getProxy(): IExtensionWorkerHost;
    private getWorkerExtensionProps;
    getSpawnOptions(): {};
    dispose(): void;
}
//# sourceMappingURL=extension-worker.service.d.ts.map