1 | import { Client, OperationContext, OperationResult, TypedDocumentNode } from '@urql/core';
|
2 | import { Getter } from 'jotai';
|
3 | declare type MutationAction<Data, Variables extends object> = {
|
4 | variables?: Variables;
|
5 | context?: Partial<OperationContext>;
|
6 | callback?: (result: OperationResult<Data, Variables>) => void;
|
7 | };
|
8 | export declare function atomWithMutation<Data, Variables extends object>(createQuery: (get: Getter) => TypedDocumentNode<Data, Variables> | string, getClient?: (get: Getter) => Client): import("jotai").WritableAtom<OperationResult<Data, Variables>, MutationAction<Data, Variables>, void>;
|
9 | export {};
|