/// /// /// import { HttpKernel } from '../HttpKernel'; import { Controller } from '../controller/Controller'; import * as Express from 'express'; import * as Http from 'http'; export declare type ExpressApp = Express.Express; export declare type ExpressHandlers = Array; export declare class ExpressHttpDriver implements Najs.Contracts.HttpDriver { static className: string; protected express: ExpressApp; protected server: Http.Server; protected httpKernel: HttpKernel; constructor(); protected setup(): ExpressApp; protected setupViewEngine(app: ExpressApp): void; getClassName(): string; getNativeDriver(): ExpressApp; route(route: Najs.Http.IRouteData): void; protected getEndpointHandlers(method: string, path: string, route: Najs.Http.IRouteData): ExpressHandlers; protected createHandlersForRoute(route: Najs.Http.IRouteData, middlewareList: Najs.Http.IMiddleware[]): ExpressHandlers; protected createEndpointWrapper(controllerName: string, endpointName: string, middleware: Najs.Http.IMiddleware[]): (request: Express.Request, response: Express.Response, next: Express.NextFunction) => Promise; protected createEndpointWrapperByObject(controllerObject: Object, endpointName: string, middleware: Najs.Http.IMiddleware[]): (request: Express.Request, response: Express.Response, next: Express.NextFunction) => Promise; protected cloneControllerObject(controller: Object, request: Express.Request, response: Express.Response): Object; protected createEndpointWrapperByFunction(endpoint: Function, middleware: Najs.Http.IMiddleware[]): (request: Express.Request, response: Express.Response, next: Express.NextFunction) => Promise; protected triggerEndpoint(controller: Controller, endpoint: Function, request: Express.Request, response: Express.Response, middleware: Najs.Http.IMiddleware[], next: Express.NextFunction): Promise; protected handleEndpointResult(request: Express.Request, response: Express.Response, result: any, controller: Controller, middleware: Najs.Http.IMiddleware[]): Promise; start(options?: Najs.Http.StartOptions): void; respondView(response: Express.Response, view: string, variables: Object): void; respondJson(response: Express.Response, value: any): void; respondJsonp(response: Express.Response, value: any): void; respondRedirect(response: Express.Response, url: string, status: number): void; }