import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { Grant, GrantSDKType } from "./feegrant"; import * as _m0 from "protobufjs/minimal"; import { DeepPartial } from "@osmonauts/helpers"; /** 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 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; } /** 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; } /** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */ export interface QueryAllowanceResponseSDKType { /** allowance is a allowance granted for grantee by granter. */ allowance: GrantSDKType; } /** 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; } /** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */ export interface QueryAllowancesRequestSDKType { grantee: string; /** pagination defines an pagination for the request. */ pagination?: PageRequestSDKType; } /** 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; } /** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */ export interface QueryAllowancesResponseSDKType { /** allowances are allowance's granted for grantee by granter. */ allowances: GrantSDKType[]; /** pagination defines an pagination for the response. */ pagination?: PageResponseSDKType; } /** 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; } /** QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. */ export interface QueryAllowancesByGranterRequestSDKType { granter: string; /** pagination defines an pagination for the request. */ pagination?: PageRequestSDKType; } /** 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; } /** QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. */ export interface QueryAllowancesByGranterResponseSDKType { /** allowances that have been issued by the granter. */ allowances: GrantSDKType[]; /** pagination defines an pagination for the response. */ pagination?: PageResponseSDKType; } export declare const QueryAllowanceRequest: { encode(message: QueryAllowanceRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowanceRequest; fromPartial(object: DeepPartial): QueryAllowanceRequest; }; export declare const QueryAllowanceResponse: { encode(message: QueryAllowanceResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowanceResponse; fromPartial(object: DeepPartial): QueryAllowanceResponse; }; export declare const QueryAllowancesRequest: { encode(message: QueryAllowancesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesRequest; fromPartial(object: DeepPartial): QueryAllowancesRequest; }; export declare const QueryAllowancesResponse: { encode(message: QueryAllowancesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesResponse; fromPartial(object: DeepPartial): QueryAllowancesResponse; }; export declare const QueryAllowancesByGranterRequest: { encode(message: QueryAllowancesByGranterRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesByGranterRequest; fromPartial(object: DeepPartial): QueryAllowancesByGranterRequest; }; export declare const QueryAllowancesByGranterResponse: { encode(message: QueryAllowancesByGranterResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllowancesByGranterResponse; fromPartial(object: DeepPartial): QueryAllowancesByGranterResponse; };