import { BrandedInterfaceDefinition } from '@digitaldefiance/branded-interface'; import type { NextFunction, Request, Response } from 'express'; /** * Express middleware factory that validates the request body against a * BrandedInterfaceDefinition using safeParseInterface(). * * On success: attaches the branded instance to `req.brandedBody` and calls `next()`. * On failure: responds with HTTP 400 and a JSON error body. * * Requirements: 6.1, 6.2, 6.3, 6.4, 6.5 */ export declare function validateBody>(definition: BrandedInterfaceDefinition): (req: Request, res: Response, next: NextFunction) => void; //# sourceMappingURL=validateBody.d.ts.map