import type { HttpContext, NextFn } from '@pearl-framework/http'; import type { FormRequest } from '../FormRequest.js'; type FormRequestConstructor = new () => T; /** * ValidationPipe is a middleware factory that validates the request * using a FormRequest class before passing to the controller. * * Usage in route definition: * router.post('/posts', createPost, [ValidationPipe(CreatePostRequest)]) * * Usage in controller decorator: * @Post('/posts', [ValidationPipe(CreatePostRequest)]) * async store(ctx: HttpContext) { ... } */ export declare function ValidationPipe(RequestClass: FormRequestConstructor): (ctx: HttpContext, next: NextFn) => Promise; export {}; //# sourceMappingURL=ValidationPipe.d.ts.map