import { OptionsMetadata } from '../../'; /** * Bcrypt hash utilities class. */ export declare class HashUtils { /** * Amount of salt rounds to be executed while hashing. * If configuration files do not have presets for salt rounds, 10 rounds is the default value. */ private saltRounds; /** * Bcrypt hash utilities constructor. * @param saltRounds * @param optionsMetadata */ constructor(saltRounds?: number, optionsMetadata?: OptionsMetadata); /** * Generate hash based on provided password and configured salt rounds amount. * @param password Password to be encrypted */ generate: (password: string) => string; /** * Validate provided password towards provided hash * @param password Password to be compared * @param hash Existing hash */ validate: (password: string, hash: string) => boolean; }