/** * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.4 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ import { ITxArgs, EndpointOrRpc } from './helper-func-types'; import { ISigningClient } from "@interchainjs/cosmos"; import { StdFee, DeliverTxResponse } from './types'; import { UseQueryOptions, UseMutationOptions, QueryKey } from '@tanstack/react-query'; import { HttpEndpoint } from "@interchainjs/types"; import { Rpc as ProtobufRpcClient } from "./helpers"; export declare const DEFAULT_RPC_CLIENT_QUERY_KEY = "rpcClient"; export declare const DEFAULT_RPC_ENDPOINT_QUERY_KEY = "rpcEndPoint"; export declare const DEFAULT_SIGNING_CLIENT_QUERY_KEY = "signingClient"; export interface CacheResolver { rpcEndpoint?: string | HttpEndpoint; clientQueryKey?: string; } export declare function isCacheResolver(resolver: unknown): resolver is CacheResolver; export interface ReactQueryParams { options?: UseQueryOptions; } export interface UseRpcClientQuery extends ReactQueryParams { clientResolver?: CacheResolver; } export interface UseRpcEndpointQuery extends ReactQueryParams { getter: () => Promise; rpcEndPointKey?: string; } export declare const useRpcEndpoint: ({ getter, options, rpcEndPointKey, }: UseRpcEndpointQuery) => import("@tanstack/react-query").UseQueryResult; export declare const useRpcClient: ({ options, clientResolver }: UseRpcClientQuery) => import("@tanstack/react-query").UseQueryResult; export interface UseQueryBuilderOptions { builderQueryFn: (client: EndpointOrRpc, request: TReq) => Promise; queryKeyPrefix: string; } export declare function buildUseQuery(opts: UseQueryBuilderOptions): ({ request, options, clientResolver, customizedQueryKey, }: UseQueryParams) => import("@tanstack/react-query").UseQueryResult; export interface UseQueryParams extends ReactQueryParams { request: TReq; clientResolver?: CacheResolver | EndpointOrRpc; customizedQueryKey?: QueryKey; } export interface ReactMutationParams { options?: UseMutationOptions; clientResolver?: CacheResolver | ISigningClient; } export interface UseMutationBuilderOptions { builderMutationFn: (client: ISigningClient, signerAddress: string, message: TMsg | TMsg[], fee: StdFee | 'auto', memo: string) => Promise; } export declare function buildUseMutation(opts: UseMutationBuilderOptions): ({ options, clientResolver }: ReactMutationParams>) => import("@tanstack/react-query").UseMutationResult, unknown>;