/** * Performs encryption via modular exponentiation. * @param base - The base value to be encrypted. * @param key - The encryption key (exponent). * @param mod - The modulus for encryption. * @returns The encrypted result as (base^key) % mod. * @throws Error if any input is invalid or mod is not a positive integer. */ declare function modularEncryption(base: number, key: number, mod: number): number; export { modularEncryption };