import { ChannelDispute, CoreChannelState, CoreTransferState, FullChannelState, FullTransferState, GetTransfersFilterOpts, IChainServiceStore, IEngineStore, StoredTransaction, TransactionReason, TransferDispute, WithdrawCommitmentJson } from "@connext/vector-types"; import { TransactionResponse, TransactionReceipt } from "@ethersproject/providers"; import { BaseLogger } from "pino"; export declare class BrowserStore implements IEngineStore, IChainServiceStore { private readonly dbName; private readonly log; private db; constructor(dbName: string, log: BaseLogger, indexedDB?: { open: Function; }, idbKeyRange?: { bound: Function; lowerBound: Function; upperBound: Function; }); static create(publicIdentifer: string, log: BaseLogger, indexedDB?: { open: Function; }, idbKeyRange?: { bound: Function; lowerBound: Function; upperBound: Function; }): Promise; connect(): Promise; disconnect(): Promise; getSchemaVersion(): Promise; updateSchemaVersion(version?: number): Promise; clear(): Promise; private sanitizeReceipt; saveChannelStateAndTransfers(channelState: FullChannelState, activeTransfers: FullTransferState[]): Promise; saveChannelState(channelState: FullChannelState, transfer?: FullTransferState): Promise; getChannelStates(): Promise; getChannelState(channelAddress: string): Promise; getChannelStateByParticipants(publicIdentifierA: string, publicIdentifierB: string, chainId: number): Promise; getActiveTransfers(channelAddress: string): Promise; getTransferState(transferId: string): Promise; getTransferByRoutingId(channelAddress: string, routingId: string): Promise; getTransfersByRoutingId(routingId: string): Promise; getTransfers(filterOpts?: GetTransfersFilterOpts): Promise; getTransactionById(onchainTransactionId: string): Promise; getActiveTransactions(): Promise; saveTransactionAttempt(onchainTransactionId: string, channelAddress: string, reason: TransactionReason, response: TransactionResponse): Promise; saveTransactionReceipt(onchainTransactionId: string, receipt: TransactionReceipt): Promise; saveTransactionFailure(onchainTransactionId: string, error: string, receipt?: TransactionReceipt): Promise; getTransactionByHash(transactionHash: string): Promise; saveWithdrawalCommitment(transferId: string, withdrawCommitment: WithdrawCommitmentJson): Promise; getWithdrawalCommitment(transferId: string): Promise; getWithdrawalCommitmentByTransactionHash(transactionHash: string): Promise; getUnsubmittedWithdrawals(channelAddress: string, withdrawalDefinition: string): Promise<{ commitment: WithdrawCommitmentJson; transfer: FullTransferState; }[]>; saveTransferDispute(transferId: string, transferDispute: TransferDispute, disputedTransfer?: CoreTransferState): Promise; getTransferDispute(transferId: string): Promise; saveChannelDispute(channelAddress: string, channelDispute: ChannelDispute, disputedChannel?: CoreChannelState): Promise; getChannelDispute(channelAddress: string): Promise; } //# sourceMappingURL=store.d.ts.map