import { User, UserAPI } from "../../types/user.types.js";

//#region src/utils/validation/validateUser.d.ts
type UserFields = (keyof User)[];
declare const defaultFieldsToCheck: UserFields;
type FieldsToCheck = (typeof defaultFieldsToCheck)[number];
type ValidationErrors = Partial<Record<(typeof defaultFieldsToCheck)[number], string[]>>;
declare const NAMES_MIN_LENGTH = 4;
declare const NAMES_MAX_LENGTH = 100;
/**
 * Validates an user object.
 * @param user The user object to validate.
 * @returns An object containing the validation errors for each field.
 */
declare const validateUser: (user: Partial<User | UserAPI>, fieldsToCheck?: UserFields) => ValidationErrors;
//#endregion
export { FieldsToCheck, NAMES_MAX_LENGTH, NAMES_MIN_LENGTH, UserFields, validateUser };
//# sourceMappingURL=validateUser.d.ts.map