import { Any } from "../../../google/protobuf/any"; import Long from "long"; import _m0 from "protobufjs/minimal"; export declare const protobufPackage = "cosmos.authz.v1beta1"; /** Since: cosmos-sdk 0.43 */ /** * GenericAuthorization gives the grantee unrestricted permissions to execute * the provided method on behalf of the granter's account. */ export interface GenericAuthorization { /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */ msg: string; } /** * Grant gives permissions to execute * the provide method with expiration time. */ export interface Grant { authorization?: Any; /** * time when the grant will expire and will be pruned. If null, then the grant * doesn't have a time expiration (other conditions in `authorization` * may apply to invalidate the grant) */ expiration?: Date; } /** * GrantAuthorization extends a grant with both the addresses of the grantee and granter. * It is used in genesis.proto and query.proto */ export interface GrantAuthorization { granter: string; grantee: string; authorization?: Any; expiration?: Date; } /** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */ export interface GrantQueueItem { /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */ msgTypeUrls: string[]; } export declare const GenericAuthorization: { encode(message: GenericAuthorization, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GenericAuthorization; fromJSON(object: any): GenericAuthorization; toJSON(message: GenericAuthorization): unknown; fromPartial, never>>(object: I): GenericAuthorization; }; export declare const Grant: { encode(message: Grant, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Grant; fromJSON(object: any): Grant; toJSON(message: Grant): unknown; fromPartial, never>; expiration?: Date; } & Record, never>>(object: I): Grant; }; export declare const GrantAuthorization: { encode(message: GrantAuthorization, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GrantAuthorization; fromJSON(object: any): GrantAuthorization; toJSON(message: GrantAuthorization): unknown; fromPartial, never>; expiration?: Date; } & Record, never>>(object: I): GrantAuthorization; }; export declare const GrantQueueItem: { encode(message: GrantQueueItem, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GrantQueueItem; fromJSON(object: any): GrantQueueItem; toJSON(message: GrantQueueItem): unknown; fromPartial, never>; } & Record, never>>(object: I): GrantQueueItem; }; declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export declare type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; declare type KeysOfUnion = T extends T ? keyof T : never; export declare type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {}; //# sourceMappingURL=authz.d.ts.map