import { Knex } from 'knex'; import { BlockHeader } from '../sdk/WalletServices.interfaces'; export interface MockChainBlockHeaderRow { height: number; hash: string; previousHash: string; merkleRoot: string; version: number; time: number; bits: number; nonce: number; coinbaseTxid: string; created_at?: Date | string; } export interface MockChainTransactionRow { txid: string; rawTx: number[] | Buffer | Uint8Array; blockHeight: number | null; blockIndex: number | null; created_at?: Date | string; } export interface MockChainUtxoRow { id?: number; txid: string; vout: number; lockingScript: number[] | Buffer | Uint8Array; satoshis: number; scriptHash: string; spentByTxid: string | null; isCoinbase: boolean; blockHeight: number | null; created_at?: Date | string; } export declare class MockChainStorage { knex: Knex; constructor(knex: Knex); migrate(): Promise; insertTransaction(txid: string, rawTx: number[]): Promise; getTransaction(txid: string): Promise; getUnminedTransactions(): Promise; setTransactionBlock(txid: string, height: number, index: number): Promise; insertUtxo(txid: string, vout: number, lockingScript: number[], satoshis: number, scriptHash: string, isCoinbase?: boolean, blockHeight?: number | null): Promise; getUtxo(txid: string, vout: number): Promise; getUtxosByScriptHash(scriptHash: string): Promise; markUtxoSpent(txid: string, vout: number, spentByTxid: string): Promise; insertBlockHeader(header: MockChainBlockHeaderRow): Promise; getBlockHeaderByHeight(height: number): Promise; getBlockHeaderByHash(hash: string): Promise; getChainTip(): Promise; getTransactionsInBlock(height: number): Promise; deleteBlockHeader(height: number): Promise; deleteTransaction(txid: string): Promise; deleteUtxosByTxid(txid: string): Promise; setUtxoBlockHeight(txid: string, blockHeight: number | null): Promise; unspendUtxo(txid: string, vout: number): Promise; private rowToBlockHeader; } //# sourceMappingURL=MockChainStorage.d.ts.map