/** * patchExpressForPromises intercepts routes and checks if they return a promise. If they do, and * that promise is rejected, the patch will call `next` with the promise's error. This greatly * simplifies the use of promises in routes and makes it practical to use async/await. Any errors * thrown by the route, either explicitly or as unhandled exceptions, will reach Express's error * handling route, which is the desired behavior. This will likely become an official feature of * Express 5, but that has not yet been released. */ export declare function patchExpressForPromises(app: any): void;