/** * Finds modular roots of the equation x^n ≡ a (mod mod). * @param a - The number whose root needs to be found. * @param n - The degree of the root (e.g., 2 for square root, 3 for cube root). * @param mod - The modulus. * @returns An array of solutions x such that x^n ≡ a (mod mod). * @throws An error if no solutions exist or inputs are invalid. */ export declare function modRoot(a: number, n: number, mod: number): number[];