/*! * @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'; import { Response } from './response'; export interface IRoutes { [key: string]: { [propName: string]: string; }; } export interface IPermissions { [key: string]: () => Promise | boolean; } export { IParams, Response }; export interface IDependencies { params: IParams; response: Response; globals: any; services?: any; } export declare class Controller { getRoutes(): IRoutes; getPermissions(dependencies?: IDependencies): IPermissions; getServices(dependencies?: IDependencies): any; } export default Controller;