import type { ErrorType } from '../errors/utils.js'; import type { Block, BlockTag } from '../types/block.js'; import type { RpcBlock } from '../types/block.js'; import type { Chain } from '../types/chain.js'; import type { ExtractChainFormatterType } from '../types/chain.js'; import type { Hex } from '../types/data.js'; import type { Prettify } from '../types/utils.js'; import { type DefineFormatterErrorType } from './defineFormatter.js'; import { type FormattedTransaction } from './transaction.js'; type BlockPendingDependencies = 'hash' | 'logsBloom' | 'nonce' | 'number'; export type FormattedBlock>, _excludedPendingDependencies extends string = BlockPendingDependencies, _formatted = Omit<_formatterReturnType, BlockPendingDependencies> & { [_key in _excludedPendingDependencies]: never; } & Pick, BlockPendingDependencies>, _transactions = includeTransactions extends true ? Prettify>[] : Hex[]> = Omit<_formatted, 'transactions'> & { transactions: _transactions; }; export type FromRpcBlockErrorType = ErrorType; export declare function fromRpcBlock(block: RpcBlock): Block; export type ToRpcBlockErrorType = ErrorType; export declare function toRpcBlock(block: Block): RpcBlock; export type DefineBlockErrorType = DefineFormatterErrorType | ErrorType; export declare const defineBlock: (overrides: { fromRpc: (parameters: rpcType, baseFn: typeof fromRpcBlock) => type; toRpc: (parameters: type, baseFn: typeof toRpcBlock) => rpcType; }) => import("./defineFormatter.js").Formatter; export {}; //# sourceMappingURL=block.d.ts.map