/** * Method Manager for JSONRPC Server * * @licence MIT * @author Mahsum UREBE */ import { TypeMethodParam } from "../../core"; import { MethodManagerAbstract } from "../abstracts"; export declare class MethodManager extends MethodManagerAbstract { /** * Method List * @protected */ protected methods: Record any | Promise>; /** * Add method * @param {string} methodName * @param {Function} fn */ add(methodName: string, fn: (...args: any) => T | Promise): void; /** * Is method exists ? * * @param methodName * @return {boolean} */ exist(methodName: string): boolean; /** * Remove method * * @param methodName */ remove(methodName: string): void; /** * Get Method Names * * @return {string[]} */ names(): string[]; call(methodName: string, params: TypeMethodParam): Promise; }