import { Grant, GrantSDKType } from "./authz"; import { Any, AnySDKType } from "../../../google/protobuf/any"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { TxRpc } from "../../../types"; export declare const protobufPackage = "cosmos.authz.v1beta1"; /** * 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 | undefined; } /** * 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 MsgGrantSDKType { granter: string; grantee: string; grant: GrantSDKType | undefined; } /** MsgExecResponse defines the Msg/MsgExecResponse response type. */ export interface MsgExecResponse { results: Uint8Array[]; } /** MsgExecResponse defines the Msg/MsgExecResponse response type. */ export interface MsgExecResponseSDKType { 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[]; } /** * 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 MsgExecSDKType { grantee: string; msgs: AnySDKType[]; } /** MsgGrantResponse defines the Msg/MsgGrant response type. */ export interface MsgGrantResponse { } /** MsgGrantResponse defines the Msg/MsgGrant response type. */ export interface MsgGrantResponseSDKType { } /** * 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; } /** * 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 MsgRevokeSDKType { granter: string; grantee: string; msg_type_url: string; } /** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ export interface MsgRevokeResponse { } /** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ export interface MsgRevokeResponseSDKType { } export declare const MsgGrant: { typeUrl: string; encode(message: MsgGrant, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgGrant; fromJSON(object: any): MsgGrant; toJSON(message: MsgGrant): unknown; fromPartial & { granter?: string; grantee?: string; grant?: Grant & { authorization?: Any & { typeUrl: string; value: Uint8Array; } & Record, never>; expiration: import("../../../google/protobuf/timestamp").Timestamp & { seconds: bigint; nanos: number; } & Record, never>; } & Record, never>; } & Record, never>>(object: I): MsgGrant; }; export declare const MsgExecResponse: { typeUrl: string; encode(message: MsgExecResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse; fromJSON(object: any): MsgExecResponse; toJSON(message: MsgExecResponse): unknown; fromPartial & { results?: Uint8Array[] & Record, never>; } & Record, never>>(object: I): MsgExecResponse; }; export declare const MsgExec: { typeUrl: string; encode(message: MsgExec, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgExec; fromJSON(object: any): MsgExec; toJSON(message: MsgExec): unknown; fromPartial & { grantee?: string; msgs?: Any[] & (Any & { typeUrl: string; value: Uint8Array; } & Record, never>)[] & Record, never>; } & Record, never>>(object: I): MsgExec; }; export declare const MsgGrantResponse: { typeUrl: string; encode(_: MsgGrantResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgGrantResponse; fromJSON(_: any): MsgGrantResponse; toJSON(_: MsgGrantResponse): unknown; fromPartial & {} & Record, never>>(_: I): MsgGrantResponse; }; export declare const MsgRevoke: { typeUrl: string; encode(message: MsgRevoke, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgRevoke; fromJSON(object: any): MsgRevoke; toJSON(message: MsgRevoke): unknown; fromPartial & { granter?: string; grantee?: string; msgTypeUrl?: string; } & Record, never>>(object: I): MsgRevoke; }; export declare const MsgRevokeResponse: { typeUrl: string; encode(_: MsgRevokeResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgRevokeResponse; fromJSON(_: any): MsgRevokeResponse; toJSON(_: MsgRevokeResponse): unknown; fromPartial & {} & Record, never>>(_: I): 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: MsgGrant): 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: MsgExec): 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: MsgRevoke): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: TxRpc); Grant(request: MsgGrant): Promise; Exec(request: MsgExec): Promise; Revoke(request: MsgRevoke): Promise; }