/** * Calculates the nth root of a number. * Handles edge cases such as negative values, zero, and fractional roots. * @param value - The number to find the root of. * @param n - The degree of the root (e.g., 2 for square root, 3 for cube root). * @returns The nth root of the value. * @throws Error if root is 0 or if trying to calculate an even root of a negative number. */ declare function root(value: number, n: number): number; export { root };