import { RPCServer } from 'castle-rpc-server/dist/index'; import { RPC } from 'castle-rpc'; import { Socket } from 'net'; declare class TCPRPCService extends RPCServer { constructor(); controller(path: any, data: any, rpc: any, ctx: any): Promise; send(content: RPC | string | Buffer, ctx: any): Promise; sendTo(ID: any, Content: any, ctx: any): Promise; readonly onlines: { [index: string]: { options: any; services: string[]; subscribes: string[]; }; }; close(ctx: { socket: Socket; }): Promise; } export declare const TCPRPCServer: TCPRPCService; export declare function install(that: any, koa: any, conf: { port: number | string; host: string; }): void; export {};