import Dinero from 'dinero.js'; import { Currency } from './types'; /** * Round amount to the minimum unit for the given currency * RWF: rounds to nearest 100 * XOF: returns the integer value */ export declare const roundToMinimumUnit: (amount: number, currency: Currency) => number; /** * Create a Dinero money object with the appropriate currency */ export declare const createMoney: (amount: number, currency: Currency) => Dinero.Dinero; /** * Calculate installments with precise distribution and proper rounding * For RWF: each installment (except the last) is rounded to multiples of 100 * For XOF: no rounding constraint * The last installment absorbs any difference to ensure total = totalPrice * * @param totalPrice Total price to split * @param count Number of installments * @param currency Currency to use for calculations * @returns Array of installment amounts that sum exactly to totalPrice */ export declare const calculateInstallments: (totalPrice: number, count: number, currency: Currency) => number[]; /** * Calculate monthly repayment details for investors * * @param amountFunded Amount funded by investor * @param expectedProfit Expected profit for investor * @param paymentLength Number of months * @param currency Currency to use * @returns Object with monthly return, principal, and profit */ export declare const calculateMonthlyRepayment: (amountFunded: number, expectedProfit: number, paymentLength: number, currency: Currency) => { monthlyReturn: number; monthlyPrincipal: number; monthlyProfit: number; }; //# sourceMappingURL=calculator.d.ts.map