/** * Hashes a string using modular arithmetic. * @param data - The input string to hash. * @param mod - The modulus for the hash function. * @returns A number representing the hash of the input data modulo mod. * @throws Error if the modulus is invalid or not a positive integer. */ declare function modularHash(data: string, mod: number): number; export { modularHash };