export declare type MiddlewareFunction = (req?: TRequest, res?: TResponse, next?: Function) => TResult;