import { BytesBuilder } from '../utils/bytesBuilder'; import { BytesReader } from '../utils/bytesReader'; import { AuxPow } from './auxpow'; import { IStandardBlockHeaderAuxPow, IStandardBlockHeaderAuxPowJSON } from './types'; declare class BlockHeader implements IStandardBlockHeaderAuxPow { auxData?: AuxPow | undefined; version: number; prevHash: string; merkleRoot: string; timestamp: number; bits: number; nonce: number; constructor({ version, prevHash, merkleRoot, timestamp, bits, nonce, auxData, }: IStandardBlockHeaderAuxPow); getTarget(): bigint; isNull(): boolean; getBaseVersion(): number; getChainId(): number; isAuxPow(): boolean; isLegacy(): boolean; byteLength(): number; writeToBytesBuilder(builder: BytesBuilder): BytesBuilder; toBuffer(): Uint8Array; toHex(): string; static fromBytesReader(reader: BytesReader): BlockHeader; static fromBuffer(buffer: Uint8Array): BlockHeader; static fromHex(hex: string): BlockHeader; static fromBase(header: IStandardBlockHeaderAuxPow): BlockHeader; static fromBlockHeaderJSON(header: IStandardBlockHeaderAuxPowJSON): BlockHeader; toBlockHeaderJSON(): IStandardBlockHeaderAuxPowJSON; } export { BlockHeader, };