import { Status } from '../components/forms/form-status'; import { SyntheticEvent } from 'react'; export interface MortgageProductResult { apr_lenders: string; mortgage_class: string; arrangement_fee: string; initial_pay_rate: string; max_ltv_available: string; initial_monthly_payment: string; initial_rate_period_months: string; monthly_payment_after_initial_period: string; key: string; } export interface MortgageFinderState { status: Status; purchasePrice: number | null; borrowAmount: number | null; mortgageLength: string; mortgageType: string; } export declare enum MortgageFinderActionType { SET_STATUS = "SET_STATUS", SET_PURCHASE_PRICE = "SET_PURCHASE_PRICE", SET_BORROW_AMOUNT = "SET_BORROW_AMOUNT", SET_MORTGAGE_LENGTH = "SET_MORTGAGE_LENGTH", SET_MORTGAGE_TYPE = "SET_MORTGAGE_TYPE" } export type Action = { type: MortgageFinderActionType.SET_STATUS; payload: Status; } | { type: MortgageFinderActionType.SET_PURCHASE_PRICE; payload: number | null; } | { type: MortgageFinderActionType.SET_BORROW_AMOUNT; payload: number | null; } | { type: MortgageFinderActionType.SET_MORTGAGE_LENGTH; payload: string; } | { type: MortgageFinderActionType.SET_MORTGAGE_TYPE; payload: string; }; export default function useMortgageFinder(): { handleSubmit: (e: SyntheticEvent) => Promise; results: MortgageProductResult[] | undefined; state: MortgageFinderState; currencyMask: (value: number, options?: { displayCurrency?: boolean; }) => string; setPurchasePrice: (value: string | number | null) => void; setBorrowAmount: (value: string | number | null) => void; setMortgageLength: (value: string) => void; setMortgageType: (value: string) => void; }; //# sourceMappingURL=use-mortgage-finder.d.ts.map