import { ValidationErrorResult } from "./types"; /** * Formats the key for error messages. * * @param propertyName - The name of the property. * @param index - The index of the property (optional). * @returns The formatted key for error messages. */ export declare function formatErrorsKey(propertyName?: keyof T, index?: number): string; /** * Adds an error message to the specified property in the validation errors object. * @param propertyName - The name of the property to add the error to. * @param error - The error message to add. * @param errors - The validation errors object. */ export declare function addError(propertyName: string, error: string, errors?: ValidationErrorResult): void;