import { NextFunction, Request, RequestHandler, Response } from "express";
type AsyncRequestHandler = (req: Request, res: Response, next: NextFunction) => Promise<unknown>;
/**
 * Wraps an async route handler so rejected promises are passed to the
 * error-handling middleware. Express 5 does this natively for handlers it
 * invokes, but this keeps handlers explicit and works for helpers called
 * outside the router too.
 */
export declare function asyncHandler(fn: AsyncRequestHandler): RequestHandler;
export {};
