import type { AnyVariables, Client, OperationContext, OperationResult, RequestPolicy, TypedDocumentNode } from '@urql/core'; import type { Getter, WritableAtom } from 'jotai'; type DeprecatedAtomWithQueryAction = { type: 'reexecute'; opts?: Partial; } | { type: 'refetch'; opts?: Partial; }; type AtomWithQueryAction = { type: 'refetch'; } | DeprecatedAtomWithQueryAction; type OperationResultWithData = Omit, 'data'> & { data: Data; }; type QueryArgs = { query: TypedDocumentNode | string; variables: Variables; requestPolicy?: RequestPolicy; context?: Partial; }; type QueryArgsWithPause = QueryArgs & { pause: boolean; }; /** * @deprecated use `jotai-urql` instead */ export declare function atomWithQuery(createQueryArgs: (get: Getter) => QueryArgs, getClient?: (get: Getter) => Client): WritableAtom, AtomWithQueryAction>; /** * @deprecated use `jotai-urql` instead */ export declare function atomWithQuery(createQueryArgs: (get: Getter) => QueryArgsWithPause, getClient?: (get: Getter) => Client): WritableAtom | null, AtomWithQueryAction>; export {};