import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { Any, AnySDKType } from "../../../google/protobuf/any"; import { Params, ParamsSDKType } from "./auth"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { TxRpc } from "../../../types"; import { QueryClient } from "@cosmjs/stargate"; export declare const protobufPackage = "cosmos.auth.v1beta1"; /** * QueryAccountsRequest is the request type for the Query/Accounts RPC method. * * Since: cosmos-sdk 0.43 */ export interface QueryAccountsRequest { /** pagination defines an optional pagination for the request. */ pagination?: PageRequest | undefined; } /** * QueryAccountsRequest is the request type for the Query/Accounts RPC method. * * Since: cosmos-sdk 0.43 */ export interface QueryAccountsRequestSDKType { pagination?: PageRequestSDKType | undefined; } /** * QueryAccountsResponse is the response type for the Query/Accounts RPC method. * * Since: cosmos-sdk 0.43 */ export interface QueryAccountsResponse { /** accounts are the existing accounts */ accounts: Any[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse | undefined; } /** * QueryAccountsResponse is the response type for the Query/Accounts RPC method. * * Since: cosmos-sdk 0.43 */ export interface QueryAccountsResponseSDKType { accounts: AnySDKType[]; pagination?: PageResponseSDKType | undefined; } /** QueryAccountRequest is the request type for the Query/Account RPC method. */ export interface QueryAccountRequest { /** address defines the address to query for. */ address: string; } /** QueryAccountRequest is the request type for the Query/Account RPC method. */ export interface QueryAccountRequestSDKType { address: string; } /** QueryAccountResponse is the response type for the Query/Account RPC method. */ export interface QueryAccountResponse { /** account defines the account of the corresponding address. */ account?: Any | undefined; } /** QueryAccountResponse is the response type for the Query/Account RPC method. */ export interface QueryAccountResponseSDKType { account?: AnySDKType | undefined; } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest { } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequestSDKType { } /** QueryParamsResponse is the response type for the Query/Params RPC method. */ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params | undefined; } /** QueryParamsResponse is the response type for the Query/Params RPC method. */ export interface QueryParamsResponseSDKType { params: ParamsSDKType | undefined; } /** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ export interface QueryModuleAccountByNameRequest { name: string; } /** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */ export interface QueryModuleAccountByNameRequestSDKType { name: string; } /** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ export interface QueryModuleAccountByNameResponse { account?: Any | undefined; } /** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */ export interface QueryModuleAccountByNameResponseSDKType { account?: AnySDKType | undefined; } export declare const QueryAccountsRequest: { typeUrl: string; encode(message: QueryAccountsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsRequest; fromJSON(object: any): QueryAccountsRequest; toJSON(message: QueryAccountsRequest): unknown; fromPartial & { pagination?: PageRequest & { key: Uint8Array; offset: bigint; limit: bigint; countTotal: boolean; reverse: boolean; } & Record, never>; } & Record, never>>(object: I): QueryAccountsRequest; }; export declare const QueryAccountsResponse: { typeUrl: string; encode(message: QueryAccountsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsResponse; fromJSON(object: any): QueryAccountsResponse; toJSON(message: QueryAccountsResponse): unknown; fromPartial & { accounts?: Any[] & (Any & { typeUrl: string; value: Uint8Array; } & Record, never>)[] & Record, never>; pagination?: PageResponse & { nextKey: Uint8Array; total: bigint; } & Record, never>; } & Record, never>>(object: I): QueryAccountsResponse; }; export declare const QueryAccountRequest: { typeUrl: string; encode(message: QueryAccountRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountRequest; fromJSON(object: any): QueryAccountRequest; toJSON(message: QueryAccountRequest): unknown; fromPartial & { address?: string; } & Record, never>>(object: I): QueryAccountRequest; }; export declare const QueryAccountResponse: { typeUrl: string; encode(message: QueryAccountResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountResponse; fromJSON(object: any): QueryAccountResponse; toJSON(message: QueryAccountResponse): unknown; fromPartial & { account?: Any & { typeUrl: string; value: Uint8Array; } & Record, never>; } & Record, never>>(object: I): QueryAccountResponse; }; export declare const QueryParamsRequest: { typeUrl: string; encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; toJSON(_: QueryParamsRequest): unknown; fromPartial & {} & Record, never>>(_: I): QueryParamsRequest; }; export declare const QueryParamsResponse: { typeUrl: string; encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; fromPartial & { params?: Params & { maxMemoCharacters: bigint; txSigLimit: bigint; txSizeCostPerByte: bigint; sigVerifyCostEd25519: bigint; sigVerifyCostSecp256k1: bigint; } & Record, never>; } & Record, never>>(object: I): QueryParamsResponse; }; export declare const QueryModuleAccountByNameRequest: { typeUrl: string; encode(message: QueryModuleAccountByNameRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameRequest; fromJSON(object: any): QueryModuleAccountByNameRequest; toJSON(message: QueryModuleAccountByNameRequest): unknown; fromPartial & { name?: string; } & Record, never>>(object: I): QueryModuleAccountByNameRequest; }; export declare const QueryModuleAccountByNameResponse: { typeUrl: string; encode(message: QueryModuleAccountByNameResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameResponse; fromJSON(object: any): QueryModuleAccountByNameResponse; toJSON(message: QueryModuleAccountByNameResponse): unknown; fromPartial & { account?: Any & { typeUrl: string; value: Uint8Array; } & Record, never>; } & Record, never>>(object: I): QueryModuleAccountByNameResponse; }; /** Query defines the gRPC querier service. */ export interface Query { /** * Accounts returns all the existing accounts * * Since: cosmos-sdk 0.43 */ Accounts(request?: QueryAccountsRequest): Promise; /** Account returns account details based on address. */ Account(request: QueryAccountRequest): Promise; /** Params queries all parameters. */ Params(request?: QueryParamsRequest): Promise; /** ModuleAccountByName returns the module account info by module name */ ModuleAccountByName(request: QueryModuleAccountByNameRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: TxRpc); Accounts(request?: QueryAccountsRequest): Promise; Account(request: QueryAccountRequest): Promise; Params(request?: QueryParamsRequest): Promise; ModuleAccountByName(request: QueryModuleAccountByNameRequest): Promise; } export declare const createRpcQueryExtension: (base: QueryClient) => { Accounts(request?: QueryAccountsRequest): Promise; Account(request: QueryAccountRequest): Promise; Params(request?: QueryParamsRequest): Promise; ModuleAccountByName(request: QueryModuleAccountByNameRequest): Promise; };