/** * Computes the greatest common divisor (GCD) of two numbers using the Euclidean algorithm. * @param a - The first number. * @param b - The second number. * @returns The GCD of a and b. * @throws Will throw an error if either input is not a finite number. */ declare function gcd(a: number, b: number): number; /** * Checks if two numbers are coprime (i.e., their GCD is 1). * @param a - The first number. * @param b - The second number. * @returns True if a and b are coprime, false otherwise. * @throws Will throw an error if either input is not a finite number. */ declare function isCoprime(a: number, b: number): boolean; export { gcd, isCoprime };