1 | import * as http from "node:http";
|
2 | import * as Types from "./types.js";
|
3 | export type Request = http.IncomingMessage & {
|
4 | body: any;
|
5 | };
|
6 | export type Response = http.ServerResponse;
|
7 | export type NextCallback = (err?: Error) => void;
|
8 | export type Middleware = (req: Request, res: Response, next: NextCallback) => void | Promise<void>;
|
9 | export default function middleware(config: Types.MiddlewareConfig): Middleware;
|
10 | //# sourceMappingURL=middleware.d.ts.map |
\ | No newline at end of file |