import type { $MicroModuleManifest } from "../types.js"; import type { IpcEndpoint } from "./endpoint/IpcEndpoint.js"; import { Ipc } from "./ipc.js"; /**每一个worker 都会创建单独的IpcPool */ export declare class IpcPool { #private; readonly poolId: string; readonly console: any; constructor(poolId?: string); toString(): string; /**安全的创建ipc */ createIpc(endpoint: IpcEndpoint, pid: number, locale: $MicroModuleManifest, remote: $MicroModuleManifest, autoStart?: boolean, startReason?: string): Ipc; safeCreatedIpc(ipc: Ipc, autoStart: boolean, startReason?: string): void; onDestory: any; destroy(): Promise; } /** * 通常来说,一个隔离环境中,有且仅有一个池子 */ export declare const jsIpcPool: IpcPool; //# sourceMappingURL=IpcPool.d.ts.map