import type { Middleware } from '../context';
interface Parsable<T> {
    parse(object: any): T;
}
export declare const withValidation: <T extends {
    query?: Q;
    params?: P;
    body?: B;
}, Q = any, P = any, B = any>(schemaSpec: Parsable<T>) => Middleware;
export {};
