import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; import { Proof } from "../crypto/proof_pb.js"; import { Consensus } from "../version/types_pb.js"; import { ValidatorSet } from "./validator_pb.js"; export declare enum BlockIDFlag { BLOCK_ID_FLAG_UNKNOWN = 0, BLOCK_ID_FLAG_ABSENT = 1, BLOCK_ID_FLAG_COMMIT = 2, BLOCK_ID_FLAG_NIL = 3 } export declare enum SignedMsgType { UNKNOWN = 0, PREVOTE = 1, PRECOMMIT = 2, PROPOSAL = 32 } export declare class PartSetHeader extends Message { total: number; hash: Uint8Array; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.PartSetHeader"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PartSetHeader; static fromJson(jsonValue: JsonValue, options?: Partial): PartSetHeader; static fromJsonString(jsonString: string, options?: Partial): PartSetHeader; static equals(a: PartSetHeader | PlainMessage | undefined, b: PartSetHeader | PlainMessage | undefined): boolean; } export declare class Part extends Message { index: number; bytes: Uint8Array; proof?: Proof; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.Part"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Part; static fromJson(jsonValue: JsonValue, options?: Partial): Part; static fromJsonString(jsonString: string, options?: Partial): Part; static equals(a: Part | PlainMessage | undefined, b: Part | PlainMessage | undefined): boolean; } export declare class BlockID extends Message { hash: Uint8Array; partSetHeader?: PartSetHeader; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.BlockID"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): BlockID; static fromJson(jsonValue: JsonValue, options?: Partial): BlockID; static fromJsonString(jsonString: string, options?: Partial): BlockID; static equals(a: BlockID | PlainMessage | undefined, b: BlockID | PlainMessage | undefined): boolean; } export declare class Header extends Message
{ version?: Consensus; chainId: string; height: bigint; time?: Timestamp; lastBlockId?: BlockID; lastCommitHash: Uint8Array; dataHash: Uint8Array; validatorsHash: Uint8Array; nextValidatorsHash: Uint8Array; consensusHash: Uint8Array; appHash: Uint8Array; lastResultsHash: Uint8Array; evidenceHash: Uint8Array; proposerAddress: Uint8Array; constructor(data?: PartialMessage
); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.Header"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Header; static fromJson(jsonValue: JsonValue, options?: Partial): Header; static fromJsonString(jsonString: string, options?: Partial): Header; static equals(a: Header | PlainMessage
| undefined, b: Header | PlainMessage
| undefined): boolean; } export declare class Data extends Message { txs: Uint8Array[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.Data"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Data; static fromJson(jsonValue: JsonValue, options?: Partial): Data; static fromJsonString(jsonString: string, options?: Partial): Data; static equals(a: Data | PlainMessage | undefined, b: Data | PlainMessage | undefined): boolean; } export declare class Vote extends Message { type: SignedMsgType; height: bigint; round: number; blockId?: BlockID; timestamp?: Timestamp; validatorAddress: Uint8Array; validatorIndex: number; signature: Uint8Array; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.Vote"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Vote; static fromJson(jsonValue: JsonValue, options?: Partial): Vote; static fromJsonString(jsonString: string, options?: Partial): Vote; static equals(a: Vote | PlainMessage | undefined, b: Vote | PlainMessage | undefined): boolean; } export declare class Commit extends Message { height: bigint; round: number; blockId?: BlockID; signatures: CommitSig[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.Commit"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Commit; static fromJson(jsonValue: JsonValue, options?: Partial): Commit; static fromJsonString(jsonString: string, options?: Partial): Commit; static equals(a: Commit | PlainMessage | undefined, b: Commit | PlainMessage | undefined): boolean; } export declare class CommitSig extends Message { blockIdFlag: BlockIDFlag; validatorAddress: Uint8Array; timestamp?: Timestamp; signature: Uint8Array; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.CommitSig"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CommitSig; static fromJson(jsonValue: JsonValue, options?: Partial): CommitSig; static fromJsonString(jsonString: string, options?: Partial): CommitSig; static equals(a: CommitSig | PlainMessage | undefined, b: CommitSig | PlainMessage | undefined): boolean; } export declare class Proposal extends Message { type: SignedMsgType; height: bigint; round: number; polRound: number; blockId?: BlockID; timestamp?: Timestamp; signature: Uint8Array; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.Proposal"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Proposal; static fromJson(jsonValue: JsonValue, options?: Partial): Proposal; static fromJsonString(jsonString: string, options?: Partial): Proposal; static equals(a: Proposal | PlainMessage | undefined, b: Proposal | PlainMessage | undefined): boolean; } export declare class SignedHeader extends Message { header?: Header; commit?: Commit; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.SignedHeader"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SignedHeader; static fromJson(jsonValue: JsonValue, options?: Partial): SignedHeader; static fromJsonString(jsonString: string, options?: Partial): SignedHeader; static equals(a: SignedHeader | PlainMessage | undefined, b: SignedHeader | PlainMessage | undefined): boolean; } export declare class LightBlock extends Message { signedHeader?: SignedHeader; validatorSet?: ValidatorSet; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.LightBlock"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): LightBlock; static fromJson(jsonValue: JsonValue, options?: Partial): LightBlock; static fromJsonString(jsonString: string, options?: Partial): LightBlock; static equals(a: LightBlock | PlainMessage | undefined, b: LightBlock | PlainMessage | undefined): boolean; } export declare class BlockMeta extends Message { blockId?: BlockID; blockSize: bigint; header?: Header; numTxs: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.BlockMeta"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): BlockMeta; static fromJson(jsonValue: JsonValue, options?: Partial): BlockMeta; static fromJsonString(jsonString: string, options?: Partial): BlockMeta; static equals(a: BlockMeta | PlainMessage | undefined, b: BlockMeta | PlainMessage | undefined): boolean; } export declare class TxProof extends Message { rootHash: Uint8Array; data: Uint8Array; proof?: Proof; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.TxProof"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TxProof; static fromJson(jsonValue: JsonValue, options?: Partial): TxProof; static fromJsonString(jsonString: string, options?: Partial): TxProof; static equals(a: TxProof | PlainMessage | undefined, b: TxProof | PlainMessage | undefined): boolean; } //# sourceMappingURL=types_pb.d.ts.map