import { ECPoint, PrivateKey, UInt160 } from '@neo-one/client-common'; import { Monitor } from '@neo-one/monitor'; import { ConsensusPayload, Node, Transaction } from '@neo-one/node-core'; import { Observable } from 'rxjs'; export interface Options { readonly privateKey: string; readonly privateNet: boolean; } export interface InternalOptions { readonly privateKey: PrivateKey; readonly publicKey: ECPoint; readonly feeAddress: UInt160; readonly privateNet: boolean; } export declare class Consensus { private mutableQueue; private mutableTimer; private readonly options$; private readonly node; private mutableConsensusContext; private readonly monitor; private mutableStartPromise; constructor({ options$, node, monitor, }: { readonly options$: Observable; readonly node: Node; readonly monitor: Monitor; }); start$(): Observable; onPersistBlock(): void; onConsensusPayloadReceived(payload: ConsensusPayload): void; onTransactionReceived(transaction: Transaction): void; runConsensusNow(): Promise; nowSeconds(): number; fastForwardOffset(seconds: number): Promise; fastForwardToTime(seconds: number): Promise; pause(): Promise; reset(): Promise; resume(): Promise; private doStart; private start; private handleResult; private handleTimer; private clearTimer; }