/* eslint-disable */
//@ts-nocheck
import type * as _Types from '../types';

import type { DocumentNode } from 'graphql';
import * as Apollo from '@apollo/client';
const defaultOptions = {} as const;
export type DeleteExerciseVariables = _Types.Exact<{
  id: _Types.Scalars['ID']['input'];
}>;


export type DeleteExercise = { deleteExercise: { operationDone: boolean | null } | null };


export const DeleteExerciseDocument = /*#__PURE__*/ {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteExercise"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteExercise"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"exerciseId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"operationDone"}}]}}]}}]} as unknown as DocumentNode;
export type DeleteExerciseMutationFn = Apollo.MutationFunction<DeleteExercise, DeleteExerciseVariables>;

/**
 * __useDeleteExercise__
 *
 * To run a mutation, you first call `useDeleteExercise` within a React component and pass it any options that fit your needs.
 * When your component renders, `useDeleteExercise` returns a tuple that includes:
 * - A mutate function that you can call at any time to execute the mutation
 * - An object with fields that represent the current status of the mutation's execution
 *
 * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
 *
 * @example
 * const [deleteExercise, { data, loading, error }] = useDeleteExercise({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
export function useDeleteExercise(baseOptions?: Apollo.MutationHookOptions<DeleteExercise, DeleteExerciseVariables>) {
        const options = {...defaultOptions, ...baseOptions}
        return Apollo.useMutation<DeleteExercise, DeleteExerciseVariables>(DeleteExerciseDocument, options);
      }
export type DeleteExerciseHookResult = ReturnType<typeof useDeleteExercise>;
export type DeleteExerciseMutationResult = Apollo.MutationResult<DeleteExercise>;
export type DeleteExerciseMutationOptions = Apollo.BaseMutationOptions<DeleteExercise, DeleteExerciseVariables>;