import type { UseMutationOptions, UseQueryOptions } from '@tanstack/react-query';
type MandatoryQueryArgs = 'queryKey' | 'queryFn';
type MandatoryMutationArgs = 'mutationFn';
/**
 * useQuery params we do NOT want in our options.
 * <ResponseType> is the type of the Response received,
 * provide the generic to QueryOptions and nowhere else, it will be infered
 */
export type QueryOptions<ResponseType> = Omit<UseQueryOptions<ResponseType>, MandatoryQueryArgs>;
/**
 * useMutation params we do NOT want in our options.
 */
export type MutationOptions<ResponseType = unknown, ErrorType = Error, VariablesType = void, ContextType = unknown> = Omit<UseMutationOptions<ResponseType, ErrorType, VariablesType, ContextType>, MandatoryMutationArgs>;
export {};
