import { Field } from "../interfaces/field.interface"; import { ValidatorContext } from "./validator-registry"; /** * Validates a field value based on its validation rules * @param field The field configuration object * @param value The value to validate * @param context Additional context for dynamic validators * @param collectAllErrors Whether to collect all errors or stop at the first one * @returns An object containing isValid and error messages if any */ export declare const validateField: (field: Field, value: any, context?: Partial, collectAllErrors?: boolean) => { isValid: boolean; error?: string; errors?: string[]; };