import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { Grant, GrantSDKType } from "./feegrant"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { TxRpc } from "../../../types"; import { QueryClient } from "@cosmjs/stargate"; export declare const protobufPackage = "cosmos.feegrant.v1beta1"; /** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ export interface QueryAllowanceRequest { /** 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; } /** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */ export interface QueryAllowanceRequestSDKType { granter: string; grantee: string; } /** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ export interface QueryAllowanceResponse { /** allowance is a allowance granted for grantee by granter. */ allowance?: Grant | undefined; } /** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ export interface QueryAllowanceResponseSDKType { allowance?: GrantSDKType | undefined; } /** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ export interface QueryAllowancesRequest { grantee: string; /** pagination defines an pagination for the request. */ pagination?: PageRequest | undefined; } /** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ export interface QueryAllowancesRequestSDKType { grantee: string; pagination?: PageRequestSDKType | undefined; } /** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ export interface QueryAllowancesResponse { /** allowances are allowance's granted for grantee by granter. */ allowances: Grant[]; /** pagination defines an pagination for the response. */ pagination?: PageResponse | undefined; } /** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ export interface QueryAllowancesResponseSDKType { allowances: GrantSDKType[]; pagination?: PageResponseSDKType | undefined; } /** QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. */ export interface QueryAllowancesByGranterRequest { granter: string; /** pagination defines an pagination for the request. */ pagination?: PageRequest | undefined; } /** QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. */ export interface QueryAllowancesByGranterRequestSDKType { granter: string; pagination?: PageRequestSDKType | undefined; } /** QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. */ export interface QueryAllowancesByGranterResponse { /** allowances that have been issued by the granter. */ allowances: Grant[]; /** pagination defines an pagination for the response. */ pagination?: PageResponse | undefined; } /** QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. */ export interface QueryAllowancesByGranterResponseSDKType { allowances: GrantSDKType[]; pagination?: PageResponseSDKType | undefined; } export declare const QueryAllowanceRequest: { typeUrl: string; encode(message: QueryAllowanceRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceRequest; fromJSON(object: any): QueryAllowanceRequest; toJSON(message: QueryAllowanceRequest): unknown; fromPartial & { granter?: string; grantee?: string; } & Record, never>>(object: I): QueryAllowanceRequest; }; export declare const QueryAllowanceResponse: { typeUrl: string; encode(message: QueryAllowanceResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceResponse; fromJSON(object: any): QueryAllowanceResponse; toJSON(message: QueryAllowanceResponse): unknown; fromPartial & { allowance?: Grant & { granter: string; grantee: string; allowance?: import("../../../google/protobuf/any").Any & { typeUrl: string; value: Uint8Array; } & Record, never>; } & Record, never>; } & Record, never>>(object: I): QueryAllowanceResponse; }; export declare const QueryAllowancesRequest: { typeUrl: string; encode(message: QueryAllowancesRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesRequest; fromJSON(object: any): QueryAllowancesRequest; toJSON(message: QueryAllowancesRequest): unknown; fromPartial & { grantee?: string; pagination?: PageRequest & { key: Uint8Array; offset: bigint; limit: bigint; countTotal: boolean; reverse: boolean; } & Record, never>; } & Record, never>>(object: I): QueryAllowancesRequest; }; export declare const QueryAllowancesResponse: { typeUrl: string; encode(message: QueryAllowancesResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesResponse; fromJSON(object: any): QueryAllowancesResponse; toJSON(message: QueryAllowancesResponse): unknown; fromPartial & { allowances?: Grant[] & (Grant & { granter: string; grantee: string; allowance?: import("../../../google/protobuf/any").Any & { typeUrl: string; value: Uint8Array; } & Record, never>; } & Record, never>)[] & Record, never>; pagination?: PageResponse & { nextKey: Uint8Array; total: bigint; } & Record, never>; } & Record, never>>(object: I): QueryAllowancesResponse; }; export declare const QueryAllowancesByGranterRequest: { typeUrl: string; encode(message: QueryAllowancesByGranterRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterRequest; fromJSON(object: any): QueryAllowancesByGranterRequest; toJSON(message: QueryAllowancesByGranterRequest): unknown; fromPartial & { granter?: string; pagination?: PageRequest & { key: Uint8Array; offset: bigint; limit: bigint; countTotal: boolean; reverse: boolean; } & Record, never>; } & Record, never>>(object: I): QueryAllowancesByGranterRequest; }; export declare const QueryAllowancesByGranterResponse: { typeUrl: string; encode(message: QueryAllowancesByGranterResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterResponse; fromJSON(object: any): QueryAllowancesByGranterResponse; toJSON(message: QueryAllowancesByGranterResponse): unknown; fromPartial & { allowances?: Grant[] & (Grant & { granter: string; grantee: string; allowance?: import("../../../google/protobuf/any").Any & { typeUrl: string; value: Uint8Array; } & Record, never>; } & Record, never>)[] & Record, never>; pagination?: PageResponse & { nextKey: Uint8Array; total: bigint; } & Record, never>; } & Record, never>>(object: I): QueryAllowancesByGranterResponse; }; /** Query defines the gRPC querier service. */ export interface Query { /** Allowance returns fee granted to the grantee by the granter. */ Allowance(request: QueryAllowanceRequest): Promise; /** Allowances returns all the grants for address. */ Allowances(request: QueryAllowancesRequest): Promise; /** * AllowancesByGranter returns all the grants given by an address * Since v0.46 */ AllowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: TxRpc); Allowance(request: QueryAllowanceRequest): Promise; Allowances(request: QueryAllowancesRequest): Promise; AllowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; } export declare const createRpcQueryExtension: (base: QueryClient) => { Allowance(request: QueryAllowanceRequest): Promise; Allowances(request: QueryAllowancesRequest): Promise; AllowancesByGranter(request: QueryAllowancesByGranterRequest): Promise; };