/**
 * Create mutation hook for SpatialRelation
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { SpatialRelationSelect, SpatialRelationWithRelations, CreateSpatialRelationInput } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { SpatialRelationSelect, SpatialRelationWithRelations, CreateSpatialRelationInput, } from '../../orm/input-types';
/**
 * Mutation hook for creating a SpatialRelation
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useCreateSpatialRelationMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ name: 'New item' });
 * ```
 */
export declare function useCreateSpatialRelationMutation<S extends SpatialRelationSelect>(params: {
    selection: {
        fields: S & SpatialRelationSelect;
    } & HookStrictSelect<NoInfer<S>, SpatialRelationSelect>;
} & Omit<UseMutationOptions<{
    createSpatialRelation: {
        spatialRelation: InferSelectResult<SpatialRelationWithRelations, S>;
    };
}, Error, CreateSpatialRelationInput['spatialRelation']>, 'mutationFn'>): UseMutationResult<{
    createSpatialRelation: {
        spatialRelation: InferSelectResult<SpatialRelationWithRelations, S>;
    };
}, Error, CreateSpatialRelationInput['spatialRelation']>;
