import type { GetRequest } from './get-request.js'; import type { EtherscanResponse } from './types.js'; import type { BlockReward, BlockCountdown, BlockTransactionCount } from './results.js'; export declare function block(getRequest: GetRequest): { /** * Find the block reward for a given address and block. * @param address - Miner address * @param blockno - Block number (defaults to 0) */ getblockreward(address: string, blockno?: string | number): Promise>; /** * Returns the estimated time remaining, in seconds, until a certain block is mined. * @param blockno - Target block number */ getblockcountdown(blockno: string | number): Promise>; /** * Returns the block number that was mined at a certain timestamp. * @param timestamp - Unix timestamp in seconds * @param closest - Return the closest block `'before'` (default) or `'after'` the timestamp */ getblocknobytime(timestamp: string | number, closest?: "before" | "after"): Promise>; /** * Returns the number of transactions in a block, broken down by type * (normal, internal, ERC-20, ERC-721 and ERC-1155). * @param blockno - Block number */ getblocktxnscount(blockno: string | number): Promise>; };