import { FetchStateAndError, ID } from '../../../commonStateTypes/common'; import { AccountBase } from '../../../entity/account/accountState'; import { CompanyBillPayInfo } from '../../../entity/company/companyStateTypes'; import { Country } from '../../../entity/countryList/countryListState'; import { DepositAccount, DepositAccountWithLimit } from '../../../entity/depositAccount/depositAccount'; import { PaymentAccount } from '../../../entity/paymentAccount/paymentAccountState'; import { RootState } from '../../../rootStateTypes'; import { CompanyView } from '../../companyView/types/companyView'; import { PlaidAccountKeyType, PlaidConnectionDetails } from '../plaidAccount/plaidAccountViewState'; import { CompanyAndIdentityDetails, CompanyAndOfficerLocalData, FundingAccount, SetupViewState, SetupViewType } from './setupViewState'; export interface SetupView { accountFetchStatus: FetchStateAndError; accountUpdateStatus: FetchStateAndError; allBankAccounts: AccountBase[]; allFundingAccounts: FundingAccount[]; plaidConnectionDetails: PlaidConnectionDetails; updateStatus: FetchStateAndError; companyBillPayInfo?: CompanyBillPayInfo; paymentAccount?: PaymentAccount; primaryFundingAccount?: FundingAccount; } export interface BusinessVerificationDetails extends CompanyAndOfficerLocalData { allNationalityCountries: Country[]; updateStatus: FetchStateAndError; companyView?: CompanyView; } export declare function getCommonSetupViewDetails(state: RootState, companyId: ID, setupViewType: SetupViewType, plaidAccountKeyType: PlaidAccountKeyType): SetupView; export declare function getBusinessVerificationDetails(state: RootState, companyId: ID): BusinessVerificationDetails; export declare const getCompanyAndIdentityDetails: (state: RootState, companyId: ID, companyAndIdentityDetails: CompanyAndIdentityDetails & Pick) => CompanyAndOfficerLocalData; export declare const getAllFundingAccounts: (depositAccounts: DepositAccount[], paymentAccounts: PaymentAccount[], paymentAccountBalanceFetchStatus: Record, includeOnlyVerifiedAccounts?: boolean) => FundingAccount[]; export declare const mapDepositAccToFundingAccount: (depositAcc: DepositAccount) => FundingAccount; export declare const mapDepositAccountWithLimitToFundingAccount: (depositAcc: DepositAccountWithLimit) => FundingAccount; export declare const mapPaymentAccToFundingAccount: (paymentAcc: PaymentAccount, paymentAccountBalanceFetchStatus: Record) => FundingAccount;