/** * useHash hook options */ export interface IUseHashOptions { /** * Algorithm used for hashing * * @default 'SHA256' */ alg?: 'SHA256' | 'SHA1' | 'MD5' | 'BKDR'; /** * Maximum length of the generated hash to return * * @default undefined */ maxLen?: number; } /** * React hook to hash a given string * * @param {string} inp input string to hash * @param {IUseHashOptions} options hashing options * @returns {string | number | undefined} hashed string */ declare const useHash: (inp?: string, options?: IUseHashOptions) => string | number | undefined; export default useHash;