import { RequestBreakerError } from "./Error";
import type { HttpRequest } from "./HttpRequest";
type MiddlewareResult = Partial<{
    headers: Record<string, string>;
    cookies: Record<string, string>;
}>;
export type MiddlewareReturnType = void | Promise<MiddlewareResult> | MiddlewareResult;
export type RouterMiddleware = (req: HttpRequest, ctx: any) => MiddlewareReturnType;
export declare class ValidationError extends RequestBreakerError {
    errors: Record<string, string[]>;
    constructor(errors: Record<string, string[]>);
}
export {};
//# sourceMappingURL=Router.d.ts.map