import { Schema } from 'effect'; import type { MiddlewareError } from '../../lib/MiddlewareError.js'; import type { Rec, RequestResponseHandler } from '../index.js'; export type WithValidatedBody = { readonly body: V; readonly bodyValidatorRaw: unknown; }; export declare const middleware: (schema: Schema.Schema) => (wrapped: RequestResponseHandler, O, E, R>) => RequestResponseHandler; //# sourceMappingURL=bodyValidator.d.ts.map