import type { Hash } from 'node:crypto'; export declare const defaultTarballHashAlgorithm = "sha1"; export declare function createTarballHash(): Hash; /** * Express doesn't do ETAGS with requests <= 1024b * we use md5 here, it works well on 1k+ bytes, but sucks with fewer data * could improve performance using crc32 after benchmarks. * @param {Object} data * @return {String} */ export declare function stringToMD5(data: Buffer | string): string; export declare function generateRandomHexString(length?: number): string; /** * return a masquerade string with its first and last {charNum} and three dots in between. * @param {String} str * @param {Number} charNum * @returns {String} */ export declare function mask(str: string, charNum?: number): string;