import { type MutationObserverOptions, type MutationObserverResult, type QueryClient, type QueryObserverOptions, type QueryObserverResult } from "@tanstack/query-core"; import { type MaybeRef } from "vue"; /** * Vue composable for a cached query, backed by TanStack Query Core. * * Returns a reactive {@link QueryObserverResult} — read `query.data`, * `query.isPending`, `query.isError`, `query.status`, etc. directly. * Pass a `ref`/`computed` for `options` to react to key changes. * * Call it inside a component `setup` (or an active effect scope) so the * observer and the options watcher are disposed automatically. * * @param options - TanStack query options, plain or inside a `ref`/`computed`. * @param client - Optional {@link QueryClient} (defaults to the shared singleton). * @returns A reactive {@link QueryObserverResult}. * * @example * ```vue * * * * ``` */ export declare function useQuery(options: MaybeRef>, client?: QueryClient): QueryObserverResult; /** * Vue composable for a mutation, backed by TanStack Query Core. * * @param options - TanStack mutation options, plain or inside a `ref`/`computed`. * @param client - Optional {@link QueryClient} (defaults to the shared singleton). * @returns A reactive {@link MutationObserverResult}. * * @example * ```vue * * * * ``` */ export declare function useMutation(options: MaybeRef>, client?: QueryClient): MutationObserverResult; //# sourceMappingURL=query.d.ts.map