export interface MutationState { isPending: boolean; error: Error | null; data: T | null; } export declare function useMutation(fn: (...args: TArgs) => Promise, opts?: { onSuccess?: (data: TResult) => void | Promise; }): { mutate: (...args: TArgs) => Promise; isPending: boolean; error: Error | null; }; //# sourceMappingURL=use-mutation.d.ts.map