/**
 * Create 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, CreateViewGrantInput } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ViewGrantSelect, ViewGrantWithRelations, CreateViewGrantInput, } from '../../orm/input-types';
/**
 * Mutation hook for creating a ViewGrant
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useCreateViewGrantMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ name: 'New item' });
 * ```
 */
export declare function useCreateViewGrantMutation<S extends ViewGrantSelect>(params: {
    selection: {
        fields: S & ViewGrantSelect;
    } & HookStrictSelect<NoInfer<S>, ViewGrantSelect>;
} & Omit<UseMutationOptions<{
    createViewGrant: {
        viewGrant: InferSelectResult<ViewGrantWithRelations, S>;
    };
}, Error, CreateViewGrantInput['viewGrant']>, 'mutationFn'>): UseMutationResult<{
    createViewGrant: {
        viewGrant: InferSelectResult<ViewGrantWithRelations, S>;
    };
}, Error, CreateViewGrantInput['viewGrant']>;
