import { grpc } from "@improbable-eng/grpc-web"; import Long from "long"; import _m0 from "protobufjs/minimal"; import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; import { Class, NFT } from "./nft"; export declare const protobufPackage = "cosmos.nft.v1beta1"; /** QueryBalanceRequest is the request type for the Query/Balance RPC method */ export interface QueryBalanceRequest { /** class_id associated with the nft */ classId: string; /** owner is the owner address of the nft */ owner: string; } /** QueryBalanceResponse is the response type for the Query/Balance RPC method */ export interface QueryBalanceResponse { /** amount is the number of all NFTs of a given class owned by the owner */ amount: Long; } /** QueryOwnerRequest is the request type for the Query/Owner RPC method */ export interface QueryOwnerRequest { /** class_id associated with the nft */ classId: string; /** id is a unique identifier of the NFT */ id: string; } /** QueryOwnerResponse is the response type for the Query/Owner RPC method */ export interface QueryOwnerResponse { /** owner is the owner address of the nft */ owner: string; } /** QuerySupplyRequest is the request type for the Query/Supply RPC method */ export interface QuerySupplyRequest { /** class_id associated with the nft */ classId: string; } /** QuerySupplyResponse is the response type for the Query/Supply RPC method */ export interface QuerySupplyResponse { /** amount is the number of all NFTs from the given class */ amount: Long; } /** QueryNFTstRequest is the request type for the Query/NFTs RPC method */ export interface QueryNFTsRequest { /** class_id associated with the nft */ classId: string; /** owner is the owner address of the nft */ owner: string; /** pagination defines an optional pagination for the request. */ pagination: PageRequest | undefined; } /** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */ export interface QueryNFTsResponse { /** NFT defines the NFT */ nfts: NFT[]; /** pagination defines the pagination in the response. */ pagination: PageResponse | undefined; } /** QueryNFTRequest is the request type for the Query/NFT RPC method */ export interface QueryNFTRequest { /** class_id associated with the nft */ classId: string; /** id is a unique identifier of the NFT */ id: string; } /** QueryNFTResponse is the response type for the Query/NFT RPC method */ export interface QueryNFTResponse { /** owner is the owner address of the nft */ nft: NFT | undefined; } /** QueryClassRequest is the request type for the Query/Class RPC method */ export interface QueryClassRequest { /** class_id associated with the nft */ classId: string; } /** QueryClassResponse is the response type for the Query/Class RPC method */ export interface QueryClassResponse { /** class defines the class of the nft type. */ class: Class | undefined; } /** QueryClassesRequest is the request type for the Query/Classes RPC method */ export interface QueryClassesRequest { /** pagination defines an optional pagination for the request. */ pagination: PageRequest | undefined; } /** QueryClassesResponse is the response type for the Query/Classes RPC method */ export interface QueryClassesResponse { /** class defines the class of the nft type. */ classes: Class[]; /** pagination defines the pagination in the response. */ pagination: PageResponse | undefined; } export declare const QueryBalanceRequest: { encode(message: QueryBalanceRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceRequest; fromJSON(object: any): QueryBalanceRequest; toJSON(message: QueryBalanceRequest): unknown; create(base?: DeepPartial): QueryBalanceRequest; fromPartial(object: DeepPartial): QueryBalanceRequest; }; export declare const QueryBalanceResponse: { encode(message: QueryBalanceResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryBalanceResponse; fromJSON(object: any): QueryBalanceResponse; toJSON(message: QueryBalanceResponse): unknown; create(base?: DeepPartial): QueryBalanceResponse; fromPartial(object: DeepPartial): QueryBalanceResponse; }; export declare const QueryOwnerRequest: { encode(message: QueryOwnerRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryOwnerRequest; fromJSON(object: any): QueryOwnerRequest; toJSON(message: QueryOwnerRequest): unknown; create(base?: DeepPartial): QueryOwnerRequest; fromPartial(object: DeepPartial): QueryOwnerRequest; }; export declare const QueryOwnerResponse: { encode(message: QueryOwnerResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryOwnerResponse; fromJSON(object: any): QueryOwnerResponse; toJSON(message: QueryOwnerResponse): unknown; create(base?: DeepPartial): QueryOwnerResponse; fromPartial(object: DeepPartial): QueryOwnerResponse; }; export declare const QuerySupplyRequest: { encode(message: QuerySupplyRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyRequest; fromJSON(object: any): QuerySupplyRequest; toJSON(message: QuerySupplyRequest): unknown; create(base?: DeepPartial): QuerySupplyRequest; fromPartial(object: DeepPartial): QuerySupplyRequest; }; export declare const QuerySupplyResponse: { encode(message: QuerySupplyResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QuerySupplyResponse; fromJSON(object: any): QuerySupplyResponse; toJSON(message: QuerySupplyResponse): unknown; create(base?: DeepPartial): QuerySupplyResponse; fromPartial(object: DeepPartial): QuerySupplyResponse; }; export declare const QueryNFTsRequest: { encode(message: QueryNFTsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTsRequest; fromJSON(object: any): QueryNFTsRequest; toJSON(message: QueryNFTsRequest): unknown; create(base?: DeepPartial): QueryNFTsRequest; fromPartial(object: DeepPartial): QueryNFTsRequest; }; export declare const QueryNFTsResponse: { encode(message: QueryNFTsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTsResponse; fromJSON(object: any): QueryNFTsResponse; toJSON(message: QueryNFTsResponse): unknown; create(base?: DeepPartial): QueryNFTsResponse; fromPartial(object: DeepPartial): QueryNFTsResponse; }; export declare const QueryNFTRequest: { encode(message: QueryNFTRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTRequest; fromJSON(object: any): QueryNFTRequest; toJSON(message: QueryNFTRequest): unknown; create(base?: DeepPartial): QueryNFTRequest; fromPartial(object: DeepPartial): QueryNFTRequest; }; export declare const QueryNFTResponse: { encode(message: QueryNFTResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryNFTResponse; fromJSON(object: any): QueryNFTResponse; toJSON(message: QueryNFTResponse): unknown; create(base?: DeepPartial): QueryNFTResponse; fromPartial(object: DeepPartial): QueryNFTResponse; }; export declare const QueryClassRequest: { encode(message: QueryClassRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassRequest; fromJSON(object: any): QueryClassRequest; toJSON(message: QueryClassRequest): unknown; create(base?: DeepPartial): QueryClassRequest; fromPartial(object: DeepPartial): QueryClassRequest; }; export declare const QueryClassResponse: { encode(message: QueryClassResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassResponse; fromJSON(object: any): QueryClassResponse; toJSON(message: QueryClassResponse): unknown; create(base?: DeepPartial): QueryClassResponse; fromPartial(object: DeepPartial): QueryClassResponse; }; export declare const QueryClassesRequest: { encode(message: QueryClassesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesRequest; fromJSON(object: any): QueryClassesRequest; toJSON(message: QueryClassesRequest): unknown; create(base?: DeepPartial): QueryClassesRequest; fromPartial(object: DeepPartial): QueryClassesRequest; }; export declare const QueryClassesResponse: { encode(message: QueryClassesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClassesResponse; fromJSON(object: any): QueryClassesResponse; toJSON(message: QueryClassesResponse): unknown; create(base?: DeepPartial): QueryClassesResponse; fromPartial(object: DeepPartial): QueryClassesResponse; }; /** Query defines the gRPC querier service. */ export interface Query { /** Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721 */ Balance(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** Owner queries the owner of the NFT based on its class and id, same as ownerOf in ERC721 */ Owner(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** Supply queries the number of NFTs from the given class, same as totalSupply of ERC721. */ Supply(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * NFTs queries all NFTs of a given class or owner,choose at least one of the two, similar to tokenByIndex in * ERC721Enumerable */ NFTs(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** NFT queries an NFT based on its class and id. */ NFT(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** Class queries an NFT class based on its id */ Class(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** Classes queries all NFT classes */ Classes(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: Rpc); Balance(request: DeepPartial, metadata?: grpc.Metadata): Promise; Owner(request: DeepPartial, metadata?: grpc.Metadata): Promise; Supply(request: DeepPartial, metadata?: grpc.Metadata): Promise; NFTs(request: DeepPartial, metadata?: grpc.Metadata): Promise; NFT(request: DeepPartial, metadata?: grpc.Metadata): Promise; Class(request: DeepPartial, metadata?: grpc.Metadata): Promise; Classes(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const QueryDesc: { serviceName: string; }; export declare const QueryBalanceDesc: UnaryMethodDefinitionish; export declare const QueryOwnerDesc: UnaryMethodDefinitionish; export declare const QuerySupplyDesc: UnaryMethodDefinitionish; export declare const QueryNFTsDesc: UnaryMethodDefinitionish; export declare const QueryNFTDesc: UnaryMethodDefinitionish; export declare const QueryClassDesc: UnaryMethodDefinitionish; export declare const QueryClassesDesc: 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 {};