import { Schema } from 'effect'; import type { MiddlewareError } from '../../lib/MiddlewareError.js'; import type { Rec, RequestResponseHandler } from '../index.js'; import { type RequestW } from '../RequestW.js'; export type WithValidatedHeaders = { headers: V; headersValidatorRaw: RequestW['headers'] | undefined; }; export declare const middleware: (schema: Schema.Schema) => (wrapped: RequestResponseHandler, O, E, R>) => RequestResponseHandler; //# sourceMappingURL=headersValidator.d.ts.map