import type { QueryKey, QueryObserverOptions } from '@tanstack/query-core'; import type { WritableAtom } from 'jotai'; import type { CreateQueryOptions, GetQueryClient } from './types'; type AtomWithQueryAction = { type: 'refetch'; }; export interface AtomWithQueryOptions extends QueryObserverOptions { queryKey: TQueryKey; } export interface AtomWithQueryOptionsWithEnabled extends Omit, 'enabled'> { enabled: boolean; } /** * @deprecated use `jotai-tanstack-query` instead */ export declare function atomWithQuery(createQuery: CreateQueryOptions>, getQueryClient?: GetQueryClient): WritableAtom; /** * @deprecated use `jotai-tanstack-query` instead */ export declare function atomWithQuery(createQuery: CreateQueryOptions>, getQueryClient?: GetQueryClient): WritableAtom; export {};