import { AccountInfo } from '../../types'; import { Observable } from 'rxjs'; import { AccountsService, AccountSnapshot, Transaction } from '.'; interface InMemoryAccount extends AccountSnapshot { balancePayableInflight: bigint; balancePayable: bigint; balanceReceivable: bigint; balanceReceivableInflight: bigint; } export declare class InMemoryAccountsService implements AccountsService { private _updatedAccounts; private _accounts; constructor(); readonly updated: Observable; get(id: string): Promise; add(accountInfo: AccountInfo): void; update(accountInfo: AccountInfo): void; remove(id: string): void; adjustBalancePayable(amount: bigint, accountId: string, callback: (trx: Transaction) => Promise): Promise; adjustBalanceReceivable(amount: bigint, accountId: string, callback: (trx: Transaction) => Promise): Promise; maybeSettle(account: InMemoryAccount): Promise; } export {};