/** * Hash a text with given parameters. * * @param text Text to be hashed. * @param salt Salts or rounds. * * @returns Hashed text. */ export declare const generateHash: (text: string, salt?: number) => Promise; /** * Compares a plain text with a hashed text. * * @param password Text to be validated. * @param hash Hashed text to be compared. * * @returns True if text match, otherwise false. */ export declare const validateHash: (password: string, hash: string) => Promise; /** * Encodes a text for non human-readable. * * @param text Text to be encoded. * * @returns Text encoded. */ export declare const encodeString: (text: string) => string;