/** * Copyright (c) TonTech. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import { useMutation } from '@tanstack/react-query'; import type { DefaultError, MutateFunction, QueryKey, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import type { Compute, ExactPartial, UnionStrictOmit } from '@ton/appkit'; export { useMutation }; export type UseMutationParameters = Compute, context>, 'mutationFn' | 'mutationKey' | 'throwOnError'>>; export type UseMutationReturnType = Compute, 'mutate' | 'mutateAsync'> & { mutate: mutate; mutateAsync: mutateAsync; }>; export declare function useQuery(parameters: UseQueryParameters & { queryKey: QueryKey; }): UseQueryReturnType; export type UseQueryParameters = Compute, 'initialData'>> & { initialData?: UseQueryOptions['initialData'] | undefined; }>; export type UseQueryReturnType = Compute & { queryKey: QueryKey; }>; //# sourceMappingURL=query.d.ts.map