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