import { Utxo, Network } from '../interfaces.js'; import NetworkProvider from './NetworkProvider.js'; declare const RpcClientRetry: any; export default class BitcoinRpcNetworkProvider implements NetworkProvider { network: Network; private rpcClient; constructor(network: Network, url: string, opts?: object); getUtxos(address: string): Promise; getBlockHeight(): Promise; getRawTransaction(txid: string): Promise; sendRawTransaction(txHex: string): Promise; getClient(): RpcClientRetry; } interface ListUnspentItem { txid: string; vout: number; address: string; label: string; scriptPubKey: string; amount: number; confirmations: number; redeemScript: string; spendable: boolean; solvable: boolean; safe: boolean; } interface RpcClientRetry { constructor(url: string, opts?: object): void; listUnspent(minConf?: number, maxConf?: number, addresses?: string[], includeUnsafe?: boolean, queryOptions?: object): Promise; getBlockCount(): Promise; getRawTransaction(txid: string, verbose?: boolean, blockHash?: string): Promise; sendRawTransaction(hexString: string, allowHighFees?: boolean): Promise; generate(nBlocks: number, maxTries?: number): Promise; generateToAddress(nBlocks: number, address: string, maxTries?: number): Promise; getNewAddress(label?: string): Promise; dumpPrivKey(address: string): Promise; getBalance(dummy?: string, minConf?: number, includeWatchOnly?: boolean): Promise; getBlock(blockHash: string, verbosity?: number): Promise; importAddress(address: string, label?: string, rescan?: boolean, p2sh?: boolean): Promise; } export {};