import { VanillaErrorNode, MessagesBagContract, ErrorReporterContract } from '../types.js'; import { ValidationException } from '../validation_exception/index.js'; /** * 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 { 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; }