import { MutationHookOptions } from '@apollo/client';
import { GraphQLType, TypeOperationMutation } from '../definitions';
export type useTypeMutationOptions = {
    type: GraphQLType;
    operation: TypeOperationMutation;
    refreshList?: boolean;
} & MutationHookOptions;
/**
 * This hook executes a mutation for a given type. It use `useMutation` to perform a GraphQL mutation.
 * It will use the default mutation operation defined in the registry (OPERATION_CREATE, OPERATION_DELETE, OPERATION_UPDATE) for the type.
 * The mutation is expected to return a valid payload of the form `{ item: {} }`.
 */
export declare const useTypeMutation: ({ type, operation, refreshList, ...options }: useTypeMutationOptions) => {
    data: any;
    loading: boolean;
    mutate: (options?: import("@apollo/client").MutationFunctionOptions<any, import("@apollo/client").OperationVariables, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined) => Promise<import("@apollo/client").FetchResult<any>>;
};
export default useTypeMutation;
//# sourceMappingURL=useTypeMutation.d.ts.map