/** * Check if the string is Hash * * @param str - The string to check * @param algorithm - Options object * @returns True if the string matches the validation, false otherwise */ export default function isHash(str: string, algorithm: HashAlgorithm): boolean; /** * @defaultValue * ```ts * { * md5: 32, * md4: 32, * sha1: 40, * sha256: 64, * sha384: 96, * sha512: 128, * ripemd128: 32, * ripemd160: 40, * tiger128: 32, * tiger160: 40, * tiger192: 48, * crc32: 8, * crc32b: 8 * } * ``` */ declare const lengths: { /** @defaultValue 32 */ md5: number; /** @defaultValue 32 */ md4: number; /** @defaultValue 40 */ sha1: number; /** @defaultValue 64 */ sha256: number; /** @defaultValue 96 */ sha384: number; /** @defaultValue 128 */ sha512: number; /** @defaultValue 32 */ ripemd128: number; /** @defaultValue 40 */ ripemd160: number; /** @defaultValue 32 */ tiger128: number; /** @defaultValue 40 */ tiger160: number; /** @defaultValue 48 */ tiger192: number; /** @defaultValue 8 */ crc32: number; /** @defaultValue 8 */ crc32b: number }; declare type HashAlgorithm = keyof typeof lengths;