import type { Vec } from '../codec/Vec'; import type { GenericExtrinsic } from '../extrinsic/Extrinsic'; import type { CodecHash, Digest, DigestItem, Header } from '../interfaces/runtime'; import type { AnyNumber, AnyU8a, Registry } from '../types'; import { Struct } from '../codec/Struct'; export interface HeaderValue { digest?: Digest | { logs: DigestItem[]; }; extrinsicsRoot?: AnyU8a; number?: AnyNumber; parentHash?: AnyU8a; stateRoot?: AnyU8a; } export interface BlockValue { extrinsics?: AnyU8a[]; header?: HeaderValue; } /** * @name GenericBlock * @description * A block encoded with header and extrinsics */ export declare class GenericBlock extends Struct { constructor(registry: Registry, value?: BlockValue | Uint8Array); /** * @description Encodes a content [[Hash]] for the block */ get contentHash(): CodecHash; /** * @description The [[Extrinsic]] contained in the block */ get extrinsics(): Vec; /** * @description Block/header [[Hash]] */ get hash(): CodecHash; /** * @description The [[Header]] of the block */ get header(): Header; }