import { Block, BlockHeader } from '@ethereumjs/block'; import { ethers } from 'ethers'; import type { BlockOptions, JsonRpcBlock, Block as ethJsBlock } from '@ethereumjs/block'; export declare function getBlockReceipts(block: Block, provider: ethers.JsonRpcProvider): Promise; export declare function getTransactionReceipt(block: Block, idx: number, provider: ethers.JsonRpcProvider): Promise; /** * * @param block An {@ethereumjs/block Block} object * @returns returns an ethers.providers.Block representation of the data */ export declare const ethJsBlockToEthersBlock: (block: ethJsBlock, provider: ethers.JsonRpcProvider) => ethers.Block; export interface ExtendedTransactionResponse { } /** * * @param block An {@ethereumjs/block Block} object * @returns returns an ethers.providers.Block representation of the data */ export declare const ethJsBlockToEthersBlockWithTxs: (block: ethJsBlock, provider: ethers.JsonRpcProvider) => Promise<{ hash: string; transactions: ethers.TransactionResponse[]; parentHash: string; number: number; timestamp: number; nonce: string; difficulty: bigint; gasLimit: bigint; miner: string; gasUsed: bigint; extraData: string; _difficulty: bigint; sha3Uncles: string; uncleHeaders: string[]; stateRoot: string; transactionCount: number; }>; export declare function normalizeTxParams(_txParams: any): any; /** * Creates a new block header object from Ethereum JSON RPC. * * @param blockParams - Ethereum JSON RPC of block (eth_getBlockByNumber) * @param options - An object describing the blockchain */ export declare function blockHeaderFromRpc(blockParams: JsonRpcBlock, options?: BlockOptions): BlockHeader; /** * Creates a new block object from Ethereum JSON RPC. * * @param blockParams - Ethereum JSON RPC of block (eth_getBlockByNumber) * @param uncles - Optional list of Ethereum JSON RPC of uncles (eth_getUncleByBlockHashAndIndex) * @param options - An object describing the blockchain */ export declare function blockFromRpc(blockParams: JsonRpcBlock, uncles?: any[], options?: BlockOptions): Block; //# sourceMappingURL=helpers.d.ts.map