import { VanillaErrorNode, MessagesBagContract, ErrorReporterContract } from '@ioc:Adonis/Core/Validator';
import { ValidationException } from '../ValidationException';
/**
 * The vanilla error reporter to stores an array of messages in
 * reference to a given field. Tailored for displaying messages
 * next to a form field.
 */
export declare class VanillaErrorReporter implements ErrorReporterContract<VanillaErrorNode> {
    private messages;
    private bail;
    /**
     * Collected errors
     */
    private errors;
    /**
     * A boolean to know if an error has been reported or
     * not
     */
    hasErrors: boolean;
    constructor(messages: MessagesBagContract, bail: boolean);
    /**
     * Report a new error
     */
    report(pointer: string, rule: string, message: string, arrayExpressionPointer?: string, args?: any): void;
    /**
     * Returns an instance of [[ValidationException]]
     */
    toError(): ValidationException;
    /**
     * Return errors
     */
    toJSON(): VanillaErrorNode;
}
