///
import { NextFunction } from 'connect';
import { IncomingMessage, ServerResponse } from 'http';
export type AsyncHandler = (req: T, res: ServerResponse, next: NextFunction) => Promise;
export declare function asyncMiddleware(fn: AsyncHandler): (req: IncomingMessage, res: ServerResponse, next: NextFunction) => Promise;