import { Client, OperationContext, OperationResult, TypedDocumentNode } from '@urql/core'; import { Atom, Getter } from 'jotai'; declare type OperationResultWithData = OperationResult & { data: Data; }; declare type SubscriptionArgs = { query: TypedDocumentNode | string; variables?: Variables; context?: Partial; }; declare type SubscriptionArgsWithPause = SubscriptionArgs & { pause: boolean; }; export declare function atomWithSubscription(createSubscriptionArgs: (get: Getter) => SubscriptionArgs, getClient?: (get: Getter) => Client): Atom>; export declare function atomWithSubscription(createSubscriptionArgs: (get: Getter) => SubscriptionArgsWithPause, getClient?: (get: Getter) => Client): Atom | null>; export {};