/// import { Block as BlockSql, Header as HeaderSql } from '@zkopru/database'; import { Bytes32, Uint256 } from 'soltypes'; import { Transaction } from 'web3-core'; import { Finalization, Header, Body } from './types'; export declare class Block { hash: Bytes32; header: Header; body: Body; slashed?: boolean; verified?: boolean; bootstrap?: { utxoTreeIndex: Uint256; utxoBootstrap: Uint256[]; withdrawalTreeIndex: Uint256; withdrawalBootstrap: Bytes32[]; }; constructor({ hash, verified, slashed, header, body, bootstrap, }: { hash: Bytes32; slashed?: boolean; verified?: boolean; header: Header; body: Body; bootstrap?: { utxoTreeIndex: Uint256; utxoBootstrap: Uint256[]; withdrawalTreeIndex: Uint256; withdrawalBootstrap: Bytes32[]; }; }); getFinalization(): Finalization; toSqlObj(): BlockSql; getHeaderSql(): HeaderSql; getSqlObjs(): { block: BlockSql; header: HeaderSql; bootstrap: any | undefined; }; serializeBlock(): Buffer; checksum(): string; static fromTx(tx: Transaction, verified?: boolean): Block; static fromJSON(data: string): Block; static from(data: string | Buffer, verified?: boolean): Block; } //# sourceMappingURL=block.d.ts.map