import { TendermintClient } from "@cosmjs/tendermint-rpc"; import { ProofOps } from "@shareledgerjs/types/tendermint/crypto/proof"; export interface ProvenQuery { readonly key: Uint8Array; readonly value: Uint8Array; readonly proof: ProofOps; readonly height: number; } export interface QueryStoreResponse { /** The response key from Tendermint. This is the same as the query key in the request. */ readonly key: Uint8Array; readonly value: Uint8Array; readonly height: number; } /** * The response of an ABCI query to Tendermint. * This is a subset of `tendermint34.AbciQueryResponse` in order * to abstract away Tendermint versions. */ export interface QueryAbciResponse { readonly value: Uint8Array; readonly height: number; } export declare class QueryClient { private readonly tmClient; constructor(tmClient: TendermintClient); /** * @deprecated use queryStoreVerified instead */ queryVerified(store: string, queryKey: Uint8Array, desiredHeight?: number): Promise; /** * Queries the database store with a proof, which is then verified. * * Please note: the current implementation trusts block headers it gets from the PRC endpoint. */ queryStoreVerified(store: string, queryKey: Uint8Array, desiredHeight?: number): Promise; queryRawProof(store: string, queryKey: Uint8Array, desiredHeight?: number): Promise; /** * Performs an ABCI query to Tendermint without requesting a proof. * * @deprecated use queryAbci instead */ queryUnverified(path: string, request: Uint8Array, desiredHeight?: number): Promise; /** * Performs an ABCI query to Tendermint without requesting a proof. * * If the `desiredHeight` is set, a particular height is requested. Otherwise * the latest height is requested. The response contains the actual height of * the query. */ queryAbci(path: string, request: Uint8Array, desiredHeight?: number): Promise; private getNextHeader; }