import Long from "long"; import { grpc } from "@improbable-eng/grpc-web"; import _m0 from "protobufjs/minimal"; import { Grant } from "../../../cosmos/authz/v1beta1/authz"; import { Any } from "../../../google/protobuf/any"; export declare const protobufPackage = "cosmos.authz.v1beta1"; /** Since: cosmos-sdk 0.43 */ /** * MsgGrant is a request type for Grant method. It declares authorization to the grantee * on behalf of the granter with the provided expiration time. */ export interface MsgGrant { granter: string; grantee: string; grant?: Grant; } /** MsgExecResponse defines the Msg/MsgExecResponse response type. */ export interface MsgExecResponse { results: Uint8Array[]; } /** * MsgExec attempts to execute the provided messages using * authorizations granted to the grantee. Each message should have only * one signer corresponding to the granter of the authorization. */ export interface MsgExec { grantee: string; /** * Authorization Msg requests to execute. Each msg must implement Authorization interface * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) * triple and validate it. */ msgs: Any[]; } /** MsgGrantResponse defines the Msg/MsgGrant response type. */ export interface MsgGrantResponse { } /** * MsgRevoke revokes any authorization with the provided sdk.Msg type on the * granter's account with that has been granted to the grantee. */ export interface MsgRevoke { granter: string; grantee: string; msgTypeUrl: string; } /** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ export interface MsgRevokeResponse { } export declare const MsgGrant: { encode(message: MsgGrant, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgGrant; fromJSON(object: any): MsgGrant; toJSON(message: MsgGrant): unknown; fromPartial(object: DeepPartial): MsgGrant; }; export declare const MsgExecResponse: { encode(message: MsgExecResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgExecResponse; fromJSON(object: any): MsgExecResponse; toJSON(message: MsgExecResponse): unknown; fromPartial(object: DeepPartial): MsgExecResponse; }; export declare const MsgExec: { encode(message: MsgExec, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgExec; fromJSON(object: any): MsgExec; toJSON(message: MsgExec): unknown; fromPartial(object: DeepPartial): MsgExec; }; export declare const MsgGrantResponse: { encode(_: MsgGrantResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgGrantResponse; fromJSON(_: any): MsgGrantResponse; toJSON(_: MsgGrantResponse): unknown; fromPartial(_: DeepPartial): MsgGrantResponse; }; export declare const MsgRevoke: { encode(message: MsgRevoke, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgRevoke; fromJSON(object: any): MsgRevoke; toJSON(message: MsgRevoke): unknown; fromPartial(object: DeepPartial): MsgRevoke; }; export declare const MsgRevokeResponse: { encode(_: MsgRevokeResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgRevokeResponse; fromJSON(_: any): MsgRevokeResponse; toJSON(_: MsgRevokeResponse): unknown; fromPartial(_: DeepPartial): MsgRevokeResponse; }; /** Msg defines the authz Msg service. */ export interface Msg { /** * Grant grants the provided authorization to the grantee on the granter's * account with the provided expiration time. If there is already a grant * for the given (granter, grantee, Authorization) triple, then the grant * will be overwritten. */ Grant(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * Exec attempts to execute the provided messages using * authorizations granted to the grantee. Each message should have only * one signer corresponding to the granter of the authorization. */ Exec(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * Revoke revokes any authorization corresponding to the provided method name on the * granter's account that has been granted to the grantee. */ Revoke(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); Grant(request: DeepPartial, metadata?: grpc.Metadata): Promise; Exec(request: DeepPartial, metadata?: grpc.Metadata): Promise; Revoke(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const MsgDesc: { serviceName: string; }; export declare const MsgGrantDesc: UnaryMethodDefinitionish; export declare const MsgExecDesc: UnaryMethodDefinitionish; export declare const MsgRevokeDesc: UnaryMethodDefinitionish; interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } declare 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; }); unary(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise; } declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long; export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};