import { MaybePromise } from '@opensumi/ide-core-common';
import { IExtensionHostManager, Output } from '../common';
export declare class ExtensionHostManager implements IExtensionHostManager {
    private readonly processMap;
    constructor();
    init(): void;
    fork(modulePath: string, ...args: any[]): number;
    send(pid: number, message: string): Promise<void>;
    isRunning(pid: number): any;
    treeKill(pid: number): Promise<void>;
    kill(pid: number, signal?: NodeJS.Signals): void;
    isKilled(pid: number): boolean;
    findDebugPort(startPort: number, giveUpAfter: number, timeout: number): Promise<number>;
    onOutput(pid: number, listener: (output: Output) => void): void;
    onExit(pid: number, listener: (code: number, signal: string) => void): void;
    onMessage(pid: number, listener: (msg: any) => void): MaybePromise<void>;
    disposeProcess(pid: number): void;
    dispose(): Promise<void>;
}
//# sourceMappingURL=extension.host.manager.d.ts.map