import { ErrorMessages, Rules } from 'validatorjs'; /** * Class AbstractEntity */ export declare abstract class AbstractEntity { #private; protected VALIDATION_RULES: Rules; protected VALIDATION_MESSAGES: ErrorMessages; /** * Whether the validation is enabled or not. */ enableValidation: boolean; /** * AbstractEntity constructor. * @param data - Data that will be used in the Entity */ protected constructor(data: T); get entityDataInput(): T; /** * Checks whether or not the entity data passes the validation rules * @param data - Data to validate * @returns void * @throws */ validate(data: T): void; }