/** * Calculate compound value with variable yearly returns. * * Used when investment returns fluctuate year to year, providing a more realistic * view of compounding in real-world scenarios. * * Formula: Final Value = Principal × (1 + r₁) × (1 + r₂) × ... × (1 + rₙ) * * @param principal Initial investment amount * @param yearlyReturns Array of annual returns as percentages (e.g., [4, 9, -2, 12] for 4%, 9%, -2%, 12%) * @returns Final value after applying all yearly returns (rounded to nearest integer) * * @example * // Investment with returns of 4%, 9%, -2%, and 12% over 4 years * compoundWithVariableReturns(1000, [4, 9, -2, 12]); * // => 1229 */ export declare function compoundWithVariableReturns(principal: number, yearlyReturns: number[]): number;