import { FormErrors, FormFieldData } from "./interface"; export declare class Validator { /** * Checks if a concept with the given type and value is unique. * @param type concept type where to check * @param value value to check * @returns boolean indicating uniqueness */ checkUniqueness(type: string, value: string): Promise; /** * Validates a single form field based on its constraints and uniqueness. * @param options - An object containing field properties including name, value, type, and validation constraints. * @returns An object containing validation errors if validation fails. */ validateField(options: FormFieldData): Promise<{ [fieldName: string]: string; }>; /** * Validates all form fields by iterating over the provided form data. * It checks each field's value, data type, and constraints, collecting errors where necessary. * * @param formData - An object representing the form data, where each key is a field name * and each value is an object containing the `value`, `dataType`, and constraints (e.g., `maxLength`, `minLength`). * * @returns An object containing validation errors for fields that failed validation. * If no errors exist, the object will be empty. */ validateForm(formData: { [key: string]: FormFieldData; }): Promise; /** * Take field element attributes * @param options Object conist of attributes * @returns Object with status and details */ validate(options: FormFieldData): any; }