import { IHttpSvcContext } from './context' export interface IMiddlewareHandlerConfig { disabled?: boolean payload?: T [propName: string]: any } export interface IMiddlewareHandler { (ctx: IHttpSvcContext, next: () => Promise, config?: IMiddlewareHandlerConfig): any } export interface IHttpSvcMiddleware { name: string handler: IMiddlewareHandler } export interface IHttpSvcMiddlewareInitConfig { handler?: IMiddlewareHandler payload?: any }