import { AccountApi } from '../api'; import { Account, DetailedAccount, Institution, Member, AccountType } from '../types'; import { GlobalStore } from './GlobalStore'; export declare class AccountStore { globalStore: GlobalStore; api: AccountApi; accounts: Account[]; accountsLoaded: boolean; accountsLoading: boolean; institutions: Institution[]; institutionsLoaded: boolean; institutionsLoading: boolean; members: Member[]; membersLoaded: boolean; membersLoading: boolean; uiStore: UiStore; constructor(globalStore: GlobalStore); loadAccountData: () => Promise; get isAccountDataLoaded(): boolean; get detailedAccounts(): DetailedAccount[]; get accountsByTypeMap(): Map; get cashAccounts(): DetailedAccount[]; get cashBalance(): number; get checkingAccounts(): DetailedAccount[]; get debtAccounts(): DetailedAccount[]; get finstrongAccounts(): DetailedAccount[]; get investmentAccounts(): DetailedAccount[]; get manualAccounts(): DetailedAccount[]; get savingsAccounts(): DetailedAccount[]; get retirementAccounts(): Account[]; get visibleAccounts(): DetailedAccount[]; get visibleCashAccounts(): DetailedAccount[]; get visibleCashBalance(): number; get visibleCheckingAccounts(): DetailedAccount[]; get visibleDebtAccounts(): DetailedAccount[]; get visibleFinstrongAccounts(): DetailedAccount[]; get visibleRetirementAccounts(): Account[]; get visibleInvestmentAccounts(): DetailedAccount[]; get visibleSavingsAccounts(): DetailedAccount[]; get savingsAndCheckingAccountsBalance(): number; get savingsAndCheckingAccounts(): Account[]; setAccounts: (accounts: Account[]) => void; setMembers: (members: Member[]) => void; setInstitutions: (institutions: Institution[]) => void; addAccount: (account: Account) => Promise; loadAccounts: () => Promise; loadInstitutions: () => Promise; loadMembers: () => Promise; mergeAccounts: (accountGuids: string[]) => Promise; /** * DEPRECATED: Use loadAccountData instead */ refreshAccounts: () => Promise; refreshMembers: () => Promise; removeAccount: (accountGuid: string) => Promise; updateAccount: (account: Account) => Promise; updateAccountBalance: (accountGuid: string, balanceChange: number) => void; updateAccountFilter: (accountMap: Map) => Promise; } declare class UiStore { selectedAccount: Account; selectedMember: Member; constructor(); setSelectedAccount: (account: Account) => Account; setSelectedMember: (member: Member) => Member; } export {};