import { RpcActivateData, RpcBase, RpcDeactivateResult, RpcInboundHandlers, RpcInitData, RpcInitResult, RpcOpenData, RpcOpenResult, RpcPingData, RpcPingResult, RpcShutdownData, RpcShutdownResult } from './rpc-base'; import { RpcChannel } from './rpc-channel'; /** * RpcToModule class. * - Shell uses the instance to communicate to the Module (tool). */ export declare class RpcOutbound extends RpcBase { /** * Initiates a new instance of the RpcToModule class. * * @param rpcChannel the rpc channel. * @param name the public name of the module. * @param origin the origin url. */ constructor(rpcChannel: RpcChannel, name: string, origin: string); /** * Registers all handlers at once. * * @param handlers the module handlers. */ registerAll(handlers: RpcInboundHandlers): void; /** * The init command. * * @param data the RpcInitData data. * @return Promise the promise object. */ init(data: RpcInitData): Promise; /** * The open command. (30 seconds waiting time) * * @param data the RpcOpenData object. * @return Promise the promise object of RpcOpenResult. */ open(data: RpcOpenData): Promise; /** * The activate command. * * @param data the void object. * @return Promise the promise object. */ activate(data: RpcActivateData): Promise; /** * The deactivate 2 command used with polling deactivation. * * @param data the void object. * @return Promise the promise object. */ deactivate2(data: any): Promise; /** * The shutdown command. * * @param data the RpcShutdownData object. * @return Promise the promise object. */ shutdown(data: RpcShutdownData): Promise; /** * The ping command. * * @param data the RpcPingData object. * @return Promise the promise object. */ ping(data: RpcPingData): Promise; /** * The empty handler to response always resolved. * * @param data the node context. * @return Promise the promise. */ private emptyHandler; }