import { RpcMethod, RpcMethods, RpcProtocol } from './RpcProtocol'; import { RpcWire } from './RpcWire'; export declare type RpcMethodFunctionDefinition = { [K in keyof M]: M[K] extends RpcMethod ? (...args: A) => Promise : M[K] extends RpcMethods ? RpcMethodFunctionDefinition : never; }; export declare type ConnectWire = RpcMethodFunctionDefinition & { on: RpcMethodFunctionDefinition; }; export declare type ConnectedWire

RpcWire> = ConnectWire

& InstanceType; export declare function connectWire

RpcWire>(protocol: P, wire: T): { new (...args: T extends new (...args: infer R) => any ? R : never): ConnectedWire; prototype: ConnectedWire; }; //# sourceMappingURL=connectWire.d.ts.map