/**
 * Update mutation hook for ViewGrant
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { ViewGrantSelect, ViewGrantWithRelations, ViewGrantPatch } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ViewGrantSelect, ViewGrantWithRelations, ViewGrantPatch, } from '../../orm/input-types';
/**
 * Mutation hook for updating a ViewGrant
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useUpdateViewGrantMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ id: 'value-here', viewGrantPatch: { name: 'Updated' } });
 * ```
 */
export declare function useUpdateViewGrantMutation<S extends ViewGrantSelect>(params: {
    selection: {
        fields: S & ViewGrantSelect;
    } & HookStrictSelect<NoInfer<S>, ViewGrantSelect>;
} & Omit<UseMutationOptions<{
    updateViewGrant: {
        viewGrant: InferSelectResult<ViewGrantWithRelations, S>;
    };
}, Error, {
    id: string;
    viewGrantPatch: ViewGrantPatch;
}>, 'mutationFn'>): UseMutationResult<{
    updateViewGrant: {
        viewGrant: InferSelectResult<ViewGrantWithRelations, S>;
    };
}, Error, {
    id: string;
    viewGrantPatch: ViewGrantPatch;
}>;
