import { BinaryWriter, ECPoint, ValidatorJSON } from '@neo-one/client-common-browserify'; import { BaseState } from '@neo-one/client-full-common-browserify'; import BN from 'bn.js'; import { Equals, EquatableKey } from './Equatable'; import { DeserializeWireBaseOptions, DeserializeWireOptions, SerializableJSON, SerializableWire, SerializeJSONContext, SerializeWire } from './Serializable'; export interface ValidatorKey { readonly publicKey: ECPoint; } export interface ValidatorAdd { readonly version?: number; readonly publicKey: ECPoint; readonly registered?: boolean; readonly votes?: BN; } export interface ValidatorUpdate { readonly registered?: boolean; readonly votes?: BN; } export declare class Validator extends BaseState implements SerializableWire, EquatableKey, SerializableJSON { static deserializeWireBase({ reader }: DeserializeWireBaseOptions): Validator; static deserializeWire(options: DeserializeWireOptions): Validator; readonly publicKey: ECPoint; readonly registered: boolean; readonly votes: BN; readonly equals: Equals; readonly toKeyString: () => string; readonly serializeWire: SerializeWire; private readonly sizeInternal; constructor({ version, publicKey, registered, votes }: ValidatorAdd); readonly size: number; update({ votes, registered }: ValidatorUpdate): Validator; serializeWireBase(writer: BinaryWriter): void; serializeJSON(_context: SerializeJSONContext): ValidatorJSON; }