import { FormFieldValidationRule } from './rules/form-field-validation-rule';

export interface FormValidator<T> {
	setDefaultRules(rules: FormFieldValidationRule<T>[]): void;
	getRules(): FormFieldValidationRule<T>[];
	setAdditionalRules(rules: FormFieldValidationRule<T>[]): void;
	validate(status: FormFieldStatusMeta, triggerStatus: (keyof FormFieldStatusMeta)[]): boolean;
}
