import { HttpRequest } from "./HttpRequest";
export declare class Middleware<T extends Record<string, any> = Record<string, any>> {
    protected req: HttpRequest;
    config: T;
    constructor(req: HttpRequest);
    run(..._args: any[]): Promise<any> | any;
    static configure<T extends Middleware<any>>(this: new (req: HttpRequest<any, any>) => T, config: T["config"]): any;
}
//# sourceMappingURL=Middleware.d.ts.map