import type { ChainComposableOptions, InferQueryArgumentResult, QueryArgument } from "../types.js"; import { type Refreshable } from "../utils/refreshable.js"; import { type ChainId } from "@reactive-dot/core"; import { type Contract, type DataStore, type SimpleInkQueryInstruction, type SimpleQueryInstruction, type SimpleSolidityQueryInstruction } from "@reactive-dot/core/internal.js"; import type { ChainDefinition, TypedApi } from "polkadot-api"; import { type Observable } from "rxjs"; import { type ComputedRef, type MaybeRefOrGetter, type ShallowRef } from "vue"; /** * Composable for querying data from chain, and returning the response. * * @param query - The function to create the query * @param options - Additional options * @returns The data response */ export declare function useQuery>(query: TQuery, options?: ChainComposableOptions): import("../types.js").PromiseLikeAsyncState>; /** * @internal */ export declare function useQueryObservable>(query: TQuery, options?: ChainComposableOptions): Refreshable>>>; /** @internal */ export declare function queryObservable>(chainId: MaybeRefOrGetter, typedApiPromise: MaybeRefOrGetter>>, query: TQuery, cache: MaybeRefOrGetter>>): Refreshable>>>; export declare const chainQueryCacheKeyPrefix = "chain-query"; export type QueryInstructionMetadata = { chainId: ChainId; instruction: SimpleQueryInstruction; }; export declare function queryInstruction(instruction: SimpleQueryInstruction, chainId: MaybeRefOrGetter, typedApiPromise: MaybeRefOrGetter>>, cache: MaybeRefOrGetter>>): Refreshable | Promise>>; export declare const inkQueryCacheKeyPrefix = "ink-query"; export declare const solidityQueryCacheKeyPrefix = "solidity-query"; export type QueryContractInstructionMetadata = { chainId: ChainId; instruction: Parameters[0]>[0]; }; export declare function queryContractInstruction(chainId: MaybeRefOrGetter, typedApiPromise: MaybeRefOrGetter>>, contract: Contract, address: MaybeRefOrGetter, instruction: SimpleInkQueryInstruction | SimpleSolidityQueryInstruction, cache: MaybeRefOrGetter>>): Refreshable>>; //# sourceMappingURL=use-query.d.ts.map