import { SyntheticEvent } from 'react'; export type MortgageCalculatorProps = { price: number; interestRate: number; term?: number; }; export type MortgageCalculatorResult = { mortgageState: MortgageState; onIntegerChange: (e: SyntheticEvent, type: ActionType) => void; onInterestChange: (e: SyntheticEvent) => void; monthlyRepayments: number; }; export default function useCalculateMortgage({ price, interestRate, term, }: MortgageCalculatorProps): MortgageCalculatorResult; type CalculationMember = { value: number; error: string; }; export type MortgageState = { propertyValue: CalculationMember; deposit: CalculationMember; annualInterest: CalculationMember; repaymentTerm: CalculationMember; }; export declare enum ActionType { SetPropertyValue = "set_property_value", SetDeposit = "set_deposit", SetInterest = "set_interest", SetTerm = "set_term", SetMonthlyRepayments = "set_monthly_repayments" } export {}; //# sourceMappingURL=use-calculate-mortgage.d.ts.map