/** * Finds the modular inverse of a number using the Extended Euclidean Algorithm. * @param a - The number to find the inverse of * @param mod - The modulus * @returns The modular inverse of a under the modulus * @throws Error if the modular inverse does not exist */ declare function modInverse(a: number, mod: number): number; export { modInverse };