/** * ValidationError is a specialized Error class that represents validation * failures. It contains structured error messages and HTTP status information * for easy integration with web frameworks. * * @example * try { * await vine.validate({ schema, data }) * } catch (error) { * if (error instanceof ValidationError) { * console.log(error.messages) // Structured validation errors * console.log(error.status) // HTTP 422 * } * } */ export declare class ValidationError extends Error { messages: any; /** * HTTP status code for the validation error (422 Unprocessable Entity) */ status: number; /** * Internal error code for programmatic error handling */ code: string; /** * Creates a new ValidationError with structured error messages. * * @param messages - Structured validation error messages * @param options - Optional error options for the base Error class */ constructor(messages: any, options?: ErrorOptions); /** * Returns the string tag for this object type. * * @returns The constructor name of this error */ get [Symbol.toStringTag](): string; /** * Returns a string representation of the validation error. * * @returns Formatted error string with name, code, and message */ toString(): string; }