import { Request, Response } from 'express'; import { HandlerContext } from './common'; interface ActionHandler { (req: Request, res: Response, context: HandlerContext): void; } interface ActionCreateOption { name: string; module: string; summary: string; description: string; prehandlers?: object; handler?: ActionHandler; services?: object; } export declare class Action { static Create(options: ActionCreateOption): Action; constructor(options: ActionCreateOption); prehandlers: object; handler: ActionHandler; name: string; module: string; expressHandler(routable: any): (req: Request, res: Response) => void; private _name: string; private _module: string; private _summary: string; private _description: string; private _prehandlers: object; private _handler: ActionHandler; private _services: object; }