import _m0 from "protobufjs/minimal.js"; import { Order, Timeout } from "./channel"; export declare const protobufPackage = "ibc.core.channel.v1"; /** * Upgrade is a verifiable type which contains the relevant information * for an attempted upgrade. It provides the proposed changes to the channel * end, the timeout for this upgrade attempt and the next packet sequence * which allows the counterparty to efficiently know the highest sequence it has received. * The next sequence send is used for pruning and upgrading from unordered to ordered channels. */ export interface Upgrade { fields: UpgradeFields | undefined; timeout: Timeout | undefined; nextSequenceSend: string; } /** * UpgradeFields are the fields in a channel end which may be changed * during a channel upgrade. */ export interface UpgradeFields { ordering: Order; connectionHops: string[]; version: string; } /** * ErrorReceipt defines a type which encapsulates the upgrade sequence and error associated with the * upgrade handshake failure. When a channel upgrade handshake is aborted both chains are expected to increment to the * next sequence. */ export interface ErrorReceipt { /** the channel upgrade sequence */ sequence: string; /** the error message detailing the cause of failure */ message: string; } export declare const Upgrade: { encode(message: Upgrade, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Upgrade; fromJSON(object: any): Upgrade; toJSON(message: Upgrade): unknown; create(base?: DeepPartial): Upgrade; fromPartial(object: DeepPartial): Upgrade; }; export declare const UpgradeFields: { encode(message: UpgradeFields, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpgradeFields; fromJSON(object: any): UpgradeFields; toJSON(message: UpgradeFields): unknown; create(base?: DeepPartial): UpgradeFields; fromPartial(object: DeepPartial): UpgradeFields; }; export declare const ErrorReceipt: { encode(message: ErrorReceipt, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ErrorReceipt; fromJSON(object: any): ErrorReceipt; toJSON(message: ErrorReceipt): unknown; create(base?: DeepPartial): ErrorReceipt; fromPartial(object: DeepPartial): ErrorReceipt; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};