import { RpcMessagePort } from './RpcMessagePort'; interface RpcMessageChannel { readonly servicePort: RpcMessagePort; readonly clientPort: RpcMessagePort; readonly isOpen: () => boolean; readonly open: () => Promise; readonly close: () => Promise; } declare function createRpcMessageChannel(servicePort: RpcMessagePort, clientPort: RpcMessagePort, linkPorts?: () => Promise, unlinkPorts?: () => Promise): RpcMessageChannel; export { RpcMessageChannel, createRpcMessageChannel };