/** * Middleware pipeline — composes an ordered list of middleware into a single dispatcher. * * Execution order is FIFO: first middleware registered runs first. * Each middleware receives the request and a `next()` function. * Calling `next()` passes control to the next middleware or the final handler. */ import type { MiddlewareFn } from '../types/http.types.js'; /** * Composes an ordered list of middleware into a single function. * * @param middlewares - Ordered list of middleware functions * @returns A composed function: (req, handler) → Response */ export declare function composeMiddleware(middlewares: MiddlewareFn[]): (req: Request, handler: (req: Request) => Promise) => Promise; //# sourceMappingURL=pipeline.d.ts.map