import { JRPCErrorResponseBodyInterface, JRPCExceptionAbstract, JRPCRequestBodyInterface, TypeId, TypeJRPCResponse } from "../../core"; import { RouterManagerConfigInterface } from "../router"; import { MethodManagerAbstract } from "./method-manager.abstract"; /** * Router Manager Abstract * * @abstract * @licence MIT * @author Mahsum UREBE */ export declare abstract class RouterManagerAbstract { protected readonly methodManager: MethodManagerAbstract; protected readonly config: RouterManagerConfigInterface; constructor(methodManager: MethodManagerAbstract, config: RouterManagerConfigInterface); generateErrorResponse(id: TypeId, error: Error | JRPCExceptionAbstract): JRPCErrorResponseBodyInterface; abstract request(body: Partial | Partial[]): Promise; }