import Service from '../module/database'; import Transaction, { SentReceive } from '../models/transaction'; import AddressDB from './address'; export default class TransactionDB extends Service { constructor(userDataPath?: string); getAll: (query?: { walletId?: string | undefined; hash?: string | undefined; ethCoin?: string | undefined; sentReceive?: SentReceive | undefined; walletName?: string | undefined; coin?: string | undefined; excludeFees?: boolean | undefined; excludeFailed?: boolean | undefined; excludePending?: boolean | undefined; sinceDate?: Date | undefined; status?: "PENDING" | "SUCCESS" | "FAILED" | undefined; minConfirmations?: number | undefined; } | undefined, sorting?: { sort: string; order?: "a" | "d" | undefined; limit?: number | undefined; } | undefined) => Promise; getByWalletId(walletId: string): import("../module/promiseCursor").default; insert(txn: Transaction): Promise; updateConfirmations(txn: any): Promise; insertFromFullTxn(transaction: { txn: any; xpub: string; addresses: any[]; walletId: string; coinType: string; addressDB: AddressDB; walletName?: string; status?: 'PENDING' | 'SUCCESS' | 'FAILED'; }): Promise; insertFromBlockbookTxn(transaction: { txn: any; xpub: string; addresses: any[]; walletId: string; coinType: string; addressDB: AddressDB; walletName?: string; status?: 'PENDING' | 'SUCCESS' | 'FAILED'; }): Promise; deleteByCoin(walletId: string, coin: string): Promise; delete(hash: string): Promise; deleteWallet(walletId: string): Promise; deleteAll(): Promise; failExpiredTxn(): Promise; }