import { ValidationError } from 'class-validator'; /** * Represents and error when any fields of a validation-enabled class fails to validate. * * @public */ export declare class DataValidationError { /** The detaied error message(s). */ details: ValidationErrorDetails[]; /** The user-friendly error message. */ message: string; /** The name of the error. */ name: string; /** * @param data - The error details, as a list of type {@link ValidationError} */ constructor(errorDetails: ValidationError[]); } /** * Represents the validation error details of a single field. * * @public */ export declare class ValidationErrorDetails { /** The constraints which failed to be validated for the given field. */ constraints: string[]; /** The name of the field which failed validation. */ field: string; constructor(details: ValidationError); }