import { RpcBase, RpcBaseData, RpcOutboundHandlers } from './rpc-base';
import { RpcChannel } from './rpc-channel';
/**
 * RpcToShell class.
 * - Module (tool) uses the instance to communicate to Shell.
 */
export declare class RpcInbound extends RpcBase {
    /**
     * Initiates a new instance of the RpcToShell 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 Shell handlers.
     */
    registerAll(handlers: RpcOutboundHandlers): void;
    /**
     * The failed command.
     *
     * @param data the RpcBaseData object.
     * @return Promise<void> the promise object.
     */
    failed(data: RpcBaseData): Promise<void>;
    /**
     * The empty handler to response always resolved.
     *
     * @return Promise<string> the promise.
     */
    private emptyHandler;
}
