import { Deal } from "../accounts/Deal"; import { DaycountConvention, RepaymentSchedule } from "../accounts/RepaymentSchedule"; import { Tranche } from "../accounts/Tranche"; import { Tranches } from "../accounts/Tranches"; export declare const dayCountConventionToNum: (daycountConvention: DaycountConvention) => 360 | 365; export declare const netAPR: (tranches: Tranche[]) => number; export declare const grossAPR: (tranches: Tranche[]) => number; export declare const calculateFinancingFee: (tranches: Tranche[]) => number; export declare const calculateAvgFinancingFee: (tranches: Tranche[][]) => number; type SimulatedTranche = { name: string; interestRepaid: number; interestPayment: number; principalRepaid: number; principalPayment: number; outstandingPrincipal: number; }; export type SimulatedPeriod = { tranches: SimulatedTranche[]; deadline: number; }; export type InterpolatedPeriod = { totalRepaid: number; }; export declare const interpolateRepayments: (simulatedPeriods: SimulatedPeriod[], deal: Deal, tranches?: Tranches) => Promise; export declare const simulateHappyFlow: (deal: Deal, schedule: RepaymentSchedule) => Promise; export {}; //# sourceMappingURL=finance.utils.d.ts.map