import type { QueryKey, QueryObserverOptions } from 'react-query'; import type { WritableAtom } from 'jotai'; import type { CreateQueryOptions, GetQueryClient } from './types'; export declare type AtomWithQueryAction = { type: 'refetch'; }; export declare type AtomWithQueryOptions = QueryObserverOptions & { queryKey: QueryKey; }; export declare type AtomWithQueryOptionsWithEnabled = Omit, 'enabled'> & { enabled: boolean; }; export declare function atomWithQuery(createQuery: CreateQueryOptions>, getQueryClient?: GetQueryClient): WritableAtom>; export declare function atomWithQuery(createQuery: CreateQueryOptions>, getQueryClient?: GetQueryClient): WritableAtom>;