import type { Guard, Middleware } from '../types.js'; export declare const Use: (...args: Middleware[]) => (target: any, context: ClassDecoratorContext | ClassMethodDecoratorContext) => any; export declare const UseGuard: (...args: Guard[]) => (target: any, context: ClassDecoratorContext | ClassMethodDecoratorContext) => any; export declare const SkipGuard: (first: Function | Guard, ...rest: (Function | Guard)[]) => (target: any, context: ClassDecoratorContext | ClassMethodDecoratorContext) => any; /** * Sets the max request body size in bytes for a route (method) or all routes * of a controller (class). Method-level overrides class-level, which overrides * the app-wide `maxBodySize` option. A declared Content-Length above the limit * yields a 413 PayloadTooLargeException before the handler runs. * * A chunked body (no Content-Length) has nothing to check up front, so the * limit is handed to the adapter after routing and counted as the bytes * arrive. `@miiajs/node-server` honours it; a runtime whose request is a real * `Request` - Bun, Deno, `app.fetch` - keeps the adapter ceiling instead. */ export declare const BodyLimit: (bytes: number) => (target: any, context: ClassDecoratorContext | ClassMethodDecoratorContext) => any; export declare const Status: (code: number) => (target: Function, context: ClassMethodDecoratorContext) => void; //# sourceMappingURL=middleware.d.ts.map