import _m0 from "protobufjs/minimal"; import { Coin } from "../../../cosmos/base/v1beta1/coin"; export declare const protobufPackage = "cosmos.staking.v1beta1"; /** AuthorizationType defines the type of staking module authorization type */ export declare enum AuthorizationType { /** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */ AUTHORIZATION_TYPE_UNSPECIFIED = 0, /** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */ AUTHORIZATION_TYPE_DELEGATE = 1, /** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */ AUTHORIZATION_TYPE_UNDELEGATE = 2, /** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */ AUTHORIZATION_TYPE_REDELEGATE = 3, UNRECOGNIZED = -1 } export declare function authorizationTypeFromJSON(object: any): AuthorizationType; export declare function authorizationTypeToJSON(object: AuthorizationType): string; /** StakeAuthorization defines authorization for delegate/undelegate/redelegate. */ export interface StakeAuthorization { /** * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is * empty, there is no spend limit and any amount of coins can be delegated. */ maxTokens: Coin | undefined; /** * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's * account. */ allowList: StakeAuthorization_Validators | undefined; /** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */ denyList: StakeAuthorization_Validators | undefined; /** authorization_type defines one of AuthorizationType. */ authorizationType: AuthorizationType; } /** Validators defines list of validator addresses. */ export interface StakeAuthorization_Validators { address: string[]; } export declare const StakeAuthorization: { encode(message: StakeAuthorization, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): StakeAuthorization; fromJSON(object: any): StakeAuthorization; toJSON(message: StakeAuthorization): unknown; fromPartial, never>) | undefined; allowList?: ({ address?: string[] | undefined; } & { address?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; denyList?: ({ address?: string[] | undefined; } & { address?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; authorizationType?: AuthorizationType | undefined; } & Record, never>>(object: I): StakeAuthorization; }; export declare const StakeAuthorization_Validators: { encode(message: StakeAuthorization_Validators, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): StakeAuthorization_Validators; fromJSON(object: any): StakeAuthorization_Validators; toJSON(message: StakeAuthorization_Validators): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): StakeAuthorization_Validators; }; 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; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {};