import { RequestVoidHandler, ErrorVoidHandler, VoidHandler } from "./void-handler"; /** Assumes the `VoidHandler` is already safe to use with `express`. Meaning, we have used `toSafeRequestVoidHandler()` or `toSafeErrorVoidHandler()` */ export declare function isSafeRequestVoidHandler(handler: VoidHandler): handler is RequestVoidHandler; /** What TS and `express` believe to be compatible function signatures is very different. https://github.com/microsoft/TypeScript/issues/31867 We use this utility function to increase type safety. ----- express thinks request middleware should have 0,1,2,3 arguments. https://github.com/expressjs/express/blob/e1b45ebd050b6f06aa38cda5aaf0c21708b0c71e/lib/router/layer.js#L89 ```ts if (fn.length > 3) { // not a standard request handler return next(); } ``` */ export declare function toSafeRequestVoidHandler>(unsafeHandler: HandlerT): HandlerT; /** What TS and `express` believe to be compatible function signatures is very different. https://github.com/microsoft/TypeScript/issues/31867 We use this utility function to increase type safety. ----- express thinks error middleware should have exactly four arguments. https://github.com/expressjs/express/blob/e1b45ebd050b6f06aa38cda5aaf0c21708b0c71e/lib/router/layer.js#L65 ```ts if (fn.length !== 4) { // not a standard error handler return next(error); } ``` */ export declare function toSafeErrorVoidHandler>(unsafeHandler: HandlerT): HandlerT; //# sourceMappingURL=util.d.ts.map