import { Block } from '../block'; import { IDogeHTTPClient } from '../http/types'; import { DogeNetworkId, IDogeNetwork } from '../networks/types'; import { Transaction } from '../transaction'; import { IAddressStatsResponse, IBasicBlock, IBlockStatus, IDogeLinkElectrsRPC, IGetTXResponse, IMempoolRecentTransaction, IMempoolStatus, IScriptHashStatsResponse, ITransactionOutSpend, ITXConfirmedStatus } from './electrsTypes'; import { IFeeEstimateMap, ITransactionWithStatus, IUTXO } from './types'; declare class DogeLinkElectrsRPC implements IDogeLinkElectrsRPC { electrsURL: string; networkId: DogeNetworkId; httpClient: IDogeHTTPClient; constructor(electrsURL: string, networkId?: DogeNetworkId, httpClient?: IDogeHTTPClient); estimateSmartFeeOrFallback(target: number, fallbackFeeRate: number): Promise; getFeeEstimateMapOrFallback(fallbackFeeRate: number): Promise; getFeeEstimateMap(): Promise; estimateSmartFee(target: number): Promise; getNetwork(): IDogeNetwork; getBlockCount(): Promise; getRawTransaction(txid: string): Promise; getTransaction(txid: string): Promise; getBlockHash(height: number): Promise; getBlockStatus(hash: string): Promise; mineBlocks(count: number, address?: string | undefined): Promise; isDoge(): boolean; getStatsFor(addressOrScriptHash: string): Promise; getTransactionsFor(addressOrScriptHash: string, confirmed?: boolean, afterTxid?: string): Promise; getBlockBasic(hash: string): Promise; getBlockGroup(start?: number): Promise; getBlock(blockHashOrNumber: string | number): Promise; getBlocks(start: number, count: number): Promise; resolveBlockHash(blockHashOrNumber: string | number): Promise; resolveBlockNumber(blockHashOrNumber: string | number): Promise; sendTx(txHex: string): Promise; getJSONElectrsMapError(urlPath: string, query?: any, errorHelper?: (result: string) => T): Promise; getJSONElectrs(urlPath: string, query?: any): Promise; getTextElectrs(urlPath: string, query?: any): Promise; getArrayBufferElectrs(urlPath: string, query?: any): Promise; getTransactionElectrs(txid: string): Promise; getTransactionElectrs(txid: string, rawHex: true): Promise; getTransactionElectrs(txid: string, rawHex: false): Promise; getTransactionElectrs(txid: string, rawHex: undefined): Promise; getTransactionStatusElectrs(txid: string): Promise; getBlockHeight(): Promise; getBlocksTip(): Promise; getUTXOs(addressOrScriptHash: string): Promise; getBalance(addressOrScriptHash: string, confirmed?: boolean): Promise; waitUntilUTXO(address: string, pollInterval?: number, maxAttempts?: number): Promise; sendRawTransaction(txHex: string): Promise; getMempoolStatus(): Promise; getMempoolRecentTransactions(): Promise; getTransactionOutSpends(txid: string): Promise; getTransactionWithStatus(txid: string): Promise; waitForTransaction(txid: string, waitUntilConfirmed?: boolean, pollInterval?: number, maxAttempts?: number): Promise; } export { DogeLinkElectrsRPC };