import { Any } from "../../../google/protobuf/any"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { DeepPartial, Exact, Rpc } from "../../../helpers"; import { JsonSafe } from "../../../json-safe"; 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; } /** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ export interface MsgGrantAllowanceResponse { } /** 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; } /** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ export interface MsgRevokeAllowanceResponse { } /** MsgPruneAllowances prunes expired fee allowances. */ export interface MsgPruneAllowances { /** pruner is the address of the user pruning expired allowances. */ pruner: string; } /** MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse response type. */ export interface MsgPruneAllowancesResponse { } export declare const MsgGrantAllowance: { typeUrl: string; encode(message: MsgGrantAllowance, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowance; fromJSON(object: any): MsgGrantAllowance; toJSON(message: MsgGrantAllowance): JsonSafe; fromPartial, I>>(object: I): MsgGrantAllowance; }; export declare const MsgGrantAllowanceResponse: { typeUrl: string; encode(_: MsgGrantAllowanceResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantAllowanceResponse; fromJSON(_: any): MsgGrantAllowanceResponse; toJSON(_: MsgGrantAllowanceResponse): JsonSafe; fromPartial, I>>(_: I): MsgGrantAllowanceResponse; }; export declare const MsgRevokeAllowance: { typeUrl: string; encode(message: MsgRevokeAllowance, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowance; fromJSON(object: any): MsgRevokeAllowance; toJSON(message: MsgRevokeAllowance): JsonSafe; fromPartial, I>>(object: I): MsgRevokeAllowance; }; export declare const MsgRevokeAllowanceResponse: { typeUrl: string; encode(_: MsgRevokeAllowanceResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeAllowanceResponse; fromJSON(_: any): MsgRevokeAllowanceResponse; toJSON(_: MsgRevokeAllowanceResponse): JsonSafe; fromPartial, I>>(_: I): MsgRevokeAllowanceResponse; }; export declare const MsgPruneAllowances: { typeUrl: string; encode(message: MsgPruneAllowances, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgPruneAllowances; fromJSON(object: any): MsgPruneAllowances; toJSON(message: MsgPruneAllowances): JsonSafe; fromPartial, I>>(object: I): MsgPruneAllowances; }; export declare const MsgPruneAllowancesResponse: { typeUrl: string; encode(_: MsgPruneAllowancesResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgPruneAllowancesResponse; fromJSON(_: any): MsgPruneAllowancesResponse; toJSON(_: MsgPruneAllowancesResponse): JsonSafe; fromPartial, I>>(_: I): MsgPruneAllowancesResponse; }; /** 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; /** PruneAllowances prunes expired fee allowances, currently up to 75 at a time. */ PruneAllowances(request: MsgPruneAllowances): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); GrantAllowance(request: MsgGrantAllowance): Promise; RevokeAllowance(request: MsgRevokeAllowance): Promise; PruneAllowances(request: MsgPruneAllowances): Promise; }