import type { InfiniteData, InfiniteQueryObserverOptions, QueryKey, RefetchOptions, RefetchQueryFilters } from 'react-query'; import type { WritableAtom } from 'jotai'; import { CreateQueryOptions, GetQueryClient } from './types'; export declare type AtomWithInfiniteQueryAction = ({ type: 'refetch'; } & Partial>) | { type: 'fetchNextPage'; } | { type: 'fetchPreviousPage'; }; export declare type AtomWithInfiniteQueryOptions = InfiniteQueryObserverOptions & { queryKey: QueryKey; }; export declare type AtomWithInfiniteQueryOptionsWithEnabled = Omit, 'enabled'> & { enabled: boolean; }; export declare function atomWithInfiniteQuery(createQuery: CreateQueryOptions>, getQueryClient?: GetQueryClient): WritableAtom | undefined, AtomWithInfiniteQueryAction>; export declare function atomWithInfiniteQuery(createQuery: CreateQueryOptions>, getQueryClient?: GetQueryClient): WritableAtom, AtomWithInfiniteQueryAction>;