///
import * as http from "http";
import * as Types from "./types";
export type Request = http.IncomingMessage & {
body: any;
};
export type Response = http.ServerResponse;
export type NextCallback = (err?: Error) => void;
export type Middleware = (req: Request, res: Response, next: NextCallback) => void | Promise;
export default function middleware(config: Types.MiddlewareConfig): Middleware;