the-forest/client/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/RpcMessageChannel.d.ts

11 lines
524 B
TypeScript
Raw Normal View History

2024-09-17 20:35:18 -04:00
import { RpcMessagePort } from './RpcMessagePort';
interface RpcMessageChannel {
readonly servicePort: RpcMessagePort;
readonly clientPort: RpcMessagePort;
readonly isOpen: () => boolean;
readonly open: () => Promise<void>;
readonly close: () => Promise<void>;
}
declare function createRpcMessageChannel(servicePort: RpcMessagePort, clientPort: RpcMessagePort, linkPorts?: () => Promise<void>, unlinkPorts?: () => Promise<void>): RpcMessageChannel;
export { RpcMessageChannel, createRpcMessageChannel };