///
///
import { ECPoint, UInt160, UInt256, UInt256Hex } from '@neo-one/client-common';
import { Block } from '@neo-one/node-core';
import BN from 'bn.js';
import { Context } from './Context';
import { Transactions, Type } from './types';
interface HeaderContextAdd {
readonly type: Type;
readonly viewNumber: number;
readonly myIndex: number;
readonly primaryIndex: number;
readonly expectedView: readonly number[];
readonly validators: readonly ECPoint[];
readonly blockReceivedTimeSeconds: number;
readonly transactions: Transactions;
readonly signatures: ReadonlyArray;
readonly header: {
readonly type: 'new';
readonly previousHash: UInt256;
readonly transactionHashes: readonly UInt256Hex[];
readonly blockIndex: number;
readonly nonce: BN;
readonly timestamp: number;
readonly nextConsensus: UInt160;
} | {
readonly type: 'existing';
readonly block: Block;
readonly transactionHashes: readonly UInt256Hex[];
};
}
export declare class HeaderContext = HeaderContext> extends Context {
readonly transactions: Transactions;
readonly transactionHashes: readonly UInt256Hex[];
readonly transactionHashesSet: Set;
readonly signatures: ReadonlyArray;
readonly header: Block;
constructor({ type, viewNumber, myIndex, primaryIndex, expectedView, validators, blockReceivedTimeSeconds, transactions, signatures, header, }: HeaderContextAdd);
cloneSignatures(_options: {
readonly signatures: ReadonlyArray;
}): T;
toJSON(): object;
}
export {};