import { ActionHook, ActionHookType } from "./action.hook.mjs"; import { ActionRouting } from "./action.routing.mjs"; import { ActionRoutingOption } from "./action.routing.option.mjs"; /** * Action Router */ export declare class ActionRouter { /** * Create a new ActionRouter instance * @param routings action routings */ constructor(routings: ActionRouting[]); private tokens; private handlers; private argumentNames; private beforeHooks; private afterHooks; /** * Add hook to ActionRouter * @param type Hook type * @param action Hook Action */ hook(type: ActionHookType, action: ActionHook): void; /** * Process message * @param path message * @param args arguments * @returns value */ process(path: string, args: unknown): Promise; /** * Return all insecurity paths in router * @returns path array */ getInsecurityPaths(): string[]; /** * Return all paths in router * @returns path array */ getPaths(): string[]; /** * Get option of spec path * @param path path * @returns option of this path or undefined if no opt */ getOption(path: string): ActionRoutingOption | undefined; private parseRouting; private getArgumentValue; private getArgumentNames; }