import { Exception } from '@poppinss/utils';
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext';
/**
 * Validation exception raised by the error reporters. The handle method is called
 * automatically during an HTTP request by AdonisJS to self handle the exception
 */
export declare class ValidationException extends Exception {
    flashToSession: boolean;
    messages?: any;
    constructor(flashToSession: boolean, messages?: any);
    /**
     * Handle exception.
     */
    handle(error: ValidationException, ctx: HttpContextContract): Promise<void>;
}
