type Request = any; type Response = any; type NextFunction = any; type ErrorRequestHandler = (err: any, req: Request, res: Response, next: NextFunction) => void; declare function expressErrorHandler(): ErrorRequestHandler; declare function asyncHandler(fn: (req: Request, res: Response, next: NextFunction) => Promise): (req: Request, res: Response, next: NextFunction) => void; export { asyncHandler, expressErrorHandler };