import Long from 'long'; import { Coin } from '../../base/v1beta1/coin'; import _m0 from 'protobufjs/minimal'; export declare const protobufPackage = "cosmos.distribution.v1beta1"; /** * MsgSetWithdrawAddress sets the withdraw address for * a delegator (or validator self-delegation). */ export interface MsgSetWithdrawAddress { $type: 'cosmos.distribution.v1beta1.MsgSetWithdrawAddress'; delegatorAddress: string; withdrawAddress: string; } /** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ export interface MsgSetWithdrawAddressResponse { $type: 'cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse'; } /** * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator * from a single validator. */ export interface MsgWithdrawDelegatorReward { $type: 'cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward'; delegatorAddress: string; validatorAddress: string; } /** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ export interface MsgWithdrawDelegatorRewardResponse { $type: 'cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse'; } /** * MsgWithdrawValidatorCommission withdraws the full commission to the validator * address. */ export interface MsgWithdrawValidatorCommission { $type: 'cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission'; validatorAddress: string; } /** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ export interface MsgWithdrawValidatorCommissionResponse { $type: 'cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse'; } /** * MsgFundCommunityPool allows an account to directly * fund the community pool. */ export interface MsgFundCommunityPool { $type: 'cosmos.distribution.v1beta1.MsgFundCommunityPool'; amount: Coin[]; depositor: string; } /** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ export interface MsgFundCommunityPoolResponse { $type: 'cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse'; } export declare const MsgSetWithdrawAddress: { $type: "cosmos.distribution.v1beta1.MsgSetWithdrawAddress"; encode(message: MsgSetWithdrawAddress, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetWithdrawAddress; fromJSON(object: any): MsgSetWithdrawAddress; toJSON(message: MsgSetWithdrawAddress): unknown; fromPartial]: never; }>(object: I): MsgSetWithdrawAddress; }; export declare const MsgSetWithdrawAddressResponse: { $type: "cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse"; encode(_: MsgSetWithdrawAddressResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetWithdrawAddressResponse; fromJSON(_: any): MsgSetWithdrawAddressResponse; toJSON(_: MsgSetWithdrawAddressResponse): unknown; fromPartial]: never; }>(_: I): MsgSetWithdrawAddressResponse; }; export declare const MsgWithdrawDelegatorReward: { $type: "cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"; encode(message: MsgWithdrawDelegatorReward, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawDelegatorReward; fromJSON(object: any): MsgWithdrawDelegatorReward; toJSON(message: MsgWithdrawDelegatorReward): unknown; fromPartial]: never; }>(object: I): MsgWithdrawDelegatorReward; }; export declare const MsgWithdrawDelegatorRewardResponse: { $type: "cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse"; encode(_: MsgWithdrawDelegatorRewardResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawDelegatorRewardResponse; fromJSON(_: any): MsgWithdrawDelegatorRewardResponse; toJSON(_: MsgWithdrawDelegatorRewardResponse): unknown; fromPartial]: never; }>(_: I): MsgWithdrawDelegatorRewardResponse; }; export declare const MsgWithdrawValidatorCommission: { $type: "cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission"; encode(message: MsgWithdrawValidatorCommission, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawValidatorCommission; fromJSON(object: any): MsgWithdrawValidatorCommission; toJSON(message: MsgWithdrawValidatorCommission): unknown; fromPartial]: never; }>(object: I): MsgWithdrawValidatorCommission; }; export declare const MsgWithdrawValidatorCommissionResponse: { $type: "cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse"; encode(_: MsgWithdrawValidatorCommissionResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawValidatorCommissionResponse; fromJSON(_: any): MsgWithdrawValidatorCommissionResponse; toJSON(_: MsgWithdrawValidatorCommissionResponse): unknown; fromPartial]: never; }>(_: I): MsgWithdrawValidatorCommissionResponse; }; export declare const MsgFundCommunityPool: { $type: "cosmos.distribution.v1beta1.MsgFundCommunityPool"; encode(message: MsgFundCommunityPool, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgFundCommunityPool; fromJSON(object: any): MsgFundCommunityPool; toJSON(message: MsgFundCommunityPool): unknown; fromPartial]: never; })[] & { [K_1 in Exclude]: never; }) | undefined; depositor?: string | undefined; } & { [K_2 in Exclude]: never; }>(object: I): MsgFundCommunityPool; }; export declare const MsgFundCommunityPoolResponse: { $type: "cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse"; encode(_: MsgFundCommunityPoolResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgFundCommunityPoolResponse; fromJSON(_: any): MsgFundCommunityPoolResponse; toJSON(_: MsgFundCommunityPoolResponse): unknown; fromPartial]: never; }>(_: I): MsgFundCommunityPoolResponse; }; /** Msg defines the distribution Msg service. */ export interface Msg { /** * SetWithdrawAddress defines a method to change the withdraw address * for a delegator (or validator self-delegation). */ SetWithdrawAddress(request: MsgSetWithdrawAddress): Promise; /** * WithdrawDelegatorReward defines a method to withdraw rewards of delegator * from a single validator. */ WithdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise; /** * WithdrawValidatorCommission defines a method to withdraw the * full commission to the validator address. */ WithdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise; /** * FundCommunityPool defines a method to allow an account to directly * fund the community pool. */ FundCommunityPool(request: MsgFundCommunityPool): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); SetWithdrawAddress(request: MsgSetWithdrawAddress): Promise; WithdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise; WithdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise; FundCommunityPool(request: MsgFundCommunityPool): Promise; } interface Rpc { request(service: string, method: string, data: Uint8Array): Promise; } declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export declare type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in Exclude]?: DeepPartial; } : Partial; declare type KeysOfUnion = T extends T ? keyof T : never; export declare type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude | '$type'>]: never; }; export {};