/** * Method Manager Abstract * * @abstract * @licence MIT * @author Mahsum UREBE */ import { TypeMethodParam } from "../../core"; export declare abstract class MethodManagerAbstract { /** * Add method * @param {string} methodName * @param {Function} fn */ abstract add(methodName: string, fn: (...args: any) => T | Promise): void; /** * Is method exists ? * * @param methodName * @return {boolean} */ abstract exist(methodName: string): boolean; /** * Remove method * * @param methodName */ abstract remove(methodName: string): void; /** * Get Method Names * * @return {string[]} */ abstract names(): string[]; /** * Call method * @param {string} methodName Method Name * @param {object | Array} params Parameters * @return {*} */ abstract call(methodName: string, params: TypeMethodParam): Promise; }