import type { NestMiddleware } from '@nestjs/common'; import type { Request, Response, NextFunction } from 'express'; import type { MastraModuleOptions } from '../mastra.module.js'; /** * Middleware that enforces body size limits via Content-Length header. * * This middleware runs BEFORE body parsers and provides early rejection * of oversized payloads based on the Content-Length header. * * Note: JSON body size limits are also enforced by JsonBodyMiddleware's * express.json({ limit: ... }) configuration, which handles both * Content-Length validation and streaming body parsing. * * For multipart requests, size limits are enforced by Busboy in the * route handler service. */ export declare class BodyLimitMiddleware implements NestMiddleware { private readonly options; private readonly logger; private readonly maxSize; constructor(options: MastraModuleOptions); use(req: Request, res: Response, next: NextFunction): void; } //# sourceMappingURL=body-limit.middleware.d.ts.map