import { Fetch } from '../utils'; import { MonthlyCashFlowProfile, RetirementGoalAccount, GlobalErrorHandler, Goal } from '..'; export declare class GoalApi { fetchInstance: Fetch; constructor(endpoint: string, token: string, onError?: GlobalErrorHandler); addGoal: (goal: Goal) => Promise; addRetirementGoal: (goal: Goal) => Promise; addRetirementGoalAccount: (retirementAccount: RetirementGoalAccount) => Promise; getGoalByGuid: (guid: string) => Promise; getGoals: () => Promise; getMonthlyCashFlowProfile: () => Promise; getRetirementGoals: () => Promise; getRetirementGoalAccounts: () => Promise; removeGoal: (guid: string) => Promise; removeRetirementGoal: (guid: string) => Promise; removeRetirementGoalAccount: (guid: string) => Promise; reorderGoals: (goals: Goal[]) => Promise; updateGoal: (goal: Goal) => Promise; updateMonthlyCashFlowProfile: (profile: MonthlyCashFlowProfile) => Promise; updateRetirementGoal: (goal: Goal) => Promise; }