/*! * @package @coolgk/node-mvc * @version 1.0.21 * @link https://github.com/coolgk/node-mvc * @license MIT * @author Daniel Gong * * Copyright (c) 2017 Daniel Gong . All rights reserved. * Licensed under the MIT License. */ /*! * Copyright (c) 2017 Daniel Gong . All rights reserved. * Licensed under the MIT License. */ import { IParams } from '@coolgk/url'; export { IParams }; export interface IRouterConfig { url: string; method: string; rootDir: string; urlParser?: (url: string, pattern: string) => IParams; [key: string]: any; [key: number]: any; } export interface IModuleControllerAction { module: string; controller: string; action: string; originalModule: string; originalController: string; originalAction: string; } export declare enum RouterError { Not_Found_404 = "Not Found", Forbidden_403 = "Forbidden" } export declare class Router { private _options; constructor(options: IRouterConfig); route(): Promise; getModuleControllerAction(): IModuleControllerAction; private _sanatise; } export default Router;