export interface Middleware { (request: ReqType, next: (req: ReqType) => void): void; } export declare function pipeline(handlers: Middleware[]): (request: ReqType, andThen?: ((req: ReqType) => void) | undefined) => void;