import { IRPCDefinition } from './rpc-definition'; import { RPCPeer } from './rpc-peer'; export declare type RPCMethod = (...args: TDefinition['args']) => Promise | TDefinition['return']; export declare type RPCMethodDecorator = (target: RPCPeer, name: string, descriptor: TypedPropertyDescriptor) => void; export declare function RPCMethod(): RPCMethodDecorator;