import { Any, AnySDKType } from "../../../google/protobuf/any"; import * as _m0 from "protobufjs/minimal"; import { Rpc } from "../../../helpers"; export declare const protobufPackage = "cosmos.feegrant.v1beta1"; /** * MsgGrantAllowance adds permission for Grantee to spend up to Allowance * of fees from the account of Granter. */ export interface MsgGrantAllowance { /** granter is the address of the user granting an allowance of their funds. */ granter: string; /** grantee is the address of the user being granted an allowance of another user's funds. */ grantee: string; /** allowance can be any of basic, periodic, allowed fee allowance. */ allowance?: Any; } /** * MsgGrantAllowance adds permission for Grantee to spend up to Allowance * of fees from the account of Granter. */ export interface MsgGrantAllowanceSDKType { granter: string; grantee: string; allowance?: AnySDKType; } /** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ export interface MsgGrantAllowanceResponse { } /** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ export interface MsgGrantAllowanceResponseSDKType { } /** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ export interface MsgRevokeAllowance { /** granter is the address of the user granting an allowance of their funds. */ granter: string; /** grantee is the address of the user being granted an allowance of another user's funds. */ grantee: string; } /** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ export interface MsgRevokeAllowanceSDKType { granter: string; grantee: string; } /** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ export interface MsgRevokeAllowanceResponse { } /** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ export interface MsgRevokeAllowanceResponseSDKType { } export declare const MsgGrantAllowance: { encode(message: MsgGrantAllowance, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowance; fromJSON(object: any): MsgGrantAllowance; toJSON(message: MsgGrantAllowance): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): MsgGrantAllowance; fromSDK(object: MsgGrantAllowanceSDKType): MsgGrantAllowance; toSDK(message: MsgGrantAllowance): MsgGrantAllowanceSDKType; }; export declare const MsgGrantAllowanceResponse: { encode(_: MsgGrantAllowanceResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowanceResponse; fromJSON(_: any): MsgGrantAllowanceResponse; toJSON(_: MsgGrantAllowanceResponse): unknown; fromPartial, never>>(_: I): MsgGrantAllowanceResponse; fromSDK(_: MsgGrantAllowanceResponseSDKType): MsgGrantAllowanceResponse; toSDK(_: MsgGrantAllowanceResponse): MsgGrantAllowanceResponseSDKType; }; export declare const MsgRevokeAllowance: { encode(message: MsgRevokeAllowance, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeAllowance; fromJSON(object: any): MsgRevokeAllowance; toJSON(message: MsgRevokeAllowance): unknown; fromPartial, never>>(object: I): MsgRevokeAllowance; fromSDK(object: MsgRevokeAllowanceSDKType): MsgRevokeAllowance; toSDK(message: MsgRevokeAllowance): MsgRevokeAllowanceSDKType; }; export declare const MsgRevokeAllowanceResponse: { encode(_: MsgRevokeAllowanceResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeAllowanceResponse; fromJSON(_: any): MsgRevokeAllowanceResponse; toJSON(_: MsgRevokeAllowanceResponse): unknown; fromPartial, never>>(_: I): MsgRevokeAllowanceResponse; fromSDK(_: MsgRevokeAllowanceResponseSDKType): MsgRevokeAllowanceResponse; toSDK(_: MsgRevokeAllowanceResponse): MsgRevokeAllowanceResponseSDKType; }; /** Msg defines the feegrant msg service. */ export interface Msg { /** * GrantAllowance grants fee allowance to the grantee on the granter's * account with the provided expiration time. */ GrantAllowance(request: MsgGrantAllowance): Promise; /** * RevokeAllowance revokes any fee allowance of granter's account that * has been granted to the grantee. */ RevokeAllowance(request: MsgRevokeAllowance): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); GrantAllowance(request: MsgGrantAllowance): Promise; RevokeAllowance(request: MsgRevokeAllowance): Promise; }