import type { Context, Next } from 'hono'; export declare class FormBodyMiddleware { private static readonly FORM_CONTENT_TYPES; /** Whether a route declares a form body, so its validator will parse one. */ static hasFormBody(opts: { content?: Record; }): boolean; /** * Parses a declared form body just ahead of the route's validator, which reads the cached result. * Left to the validator, a malformed body is a bare `HTTPException(400)` carrying the parser's own * text and no code; read here, it is `core.request.body_malformed`. Mounted as a Hono middleware * handler (`FormBodyMiddleware.read`), so it never reads `this`. */ static read(context: Context, next: Next): Promise; } //# sourceMappingURL=form-body.middleware.d.ts.map