import { grpc } from "@improbable-eng/grpc-web"; import Long from "long"; import _m0 from "protobufjs/minimal"; import { Any } from "../../../google/protobuf/any"; 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 | undefined; } /** 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: { encode(message: MsgGrantAllowance, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowance; fromJSON(object: any): MsgGrantAllowance; toJSON(message: MsgGrantAllowance): unknown; create(base?: DeepPartial): MsgGrantAllowance; fromPartial(object: DeepPartial): MsgGrantAllowance; }; 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; create(base?: DeepPartial): MsgGrantAllowanceResponse; fromPartial(_: DeepPartial): MsgGrantAllowanceResponse; }; 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; create(base?: DeepPartial): MsgRevokeAllowance; fromPartial(object: DeepPartial): MsgRevokeAllowance; }; 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; create(base?: DeepPartial): MsgRevokeAllowanceResponse; fromPartial(_: DeepPartial): MsgRevokeAllowanceResponse; }; export declare const MsgPruneAllowances: { encode(message: MsgPruneAllowances, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgPruneAllowances; fromJSON(object: any): MsgPruneAllowances; toJSON(message: MsgPruneAllowances): unknown; create(base?: DeepPartial): MsgPruneAllowances; fromPartial(object: DeepPartial): MsgPruneAllowances; }; export declare const MsgPruneAllowancesResponse: { encode(_: MsgPruneAllowancesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgPruneAllowancesResponse; fromJSON(_: any): MsgPruneAllowancesResponse; toJSON(_: MsgPruneAllowancesResponse): unknown; create(base?: DeepPartial): MsgPruneAllowancesResponse; fromPartial(_: DeepPartial): 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: DeepPartial, metadata?: grpc.Metadata): Promise; /** * RevokeAllowance revokes any fee allowance of granter's account that * has been granted to the grantee. */ RevokeAllowance(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** PruneAllowances prunes expired fee allowances, currently up to 75 at a time. */ PruneAllowances(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); GrantAllowance(request: DeepPartial, metadata?: grpc.Metadata): Promise; RevokeAllowance(request: DeepPartial, metadata?: grpc.Metadata): Promise; PruneAllowances(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const MsgDesc: { serviceName: string; }; export declare const MsgGrantAllowanceDesc: UnaryMethodDefinitionish; export declare const MsgRevokeAllowanceDesc: UnaryMethodDefinitionish; export declare const MsgPruneAllowancesDesc: UnaryMethodDefinitionish; interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } type UnaryMethodDefinitionish = UnaryMethodDefinitionishR; interface Rpc { unary(methodDesc: T, request: any, metadata: grpc.Metadata | undefined): Promise; } export declare class GrpcWebImpl { private host; private options; constructor(host: string, options: { transport?: grpc.TransportFactory; debug?: boolean; metadata?: grpc.Metadata; upStreamRetryCodes?: number[]; }); unary(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export declare class GrpcWebError extends globalThis.Error { code: grpc.Code; metadata: grpc.Metadata; constructor(message: string, code: grpc.Code, metadata: grpc.Metadata); } export {};