import ValidatorRules from './ValidatorRules'; export default class Validator { value: { [key: string]: unknown; }; errors: string[]; /** * Constructor */ constructor(value: { [key: string]: unknown; }); /** * Initiates validation rules for a specific field in the value object. */ field(paramName: string): ValidatorRules; /** * Adds an error message to the validator's list of errors. */ setError(message: string): void; /** * Determines whether the validation has failed, based on the presence of errors. */ fails(): boolean; }