/**
 * Single item query hook for SpatialRelation
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { SpatialRelationSelect, SpatialRelationWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { SpatialRelationSelect, SpatialRelationWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const spatialRelationQueryKey: (id: string | number) => readonly ["spatialrelation", "detail", string | number];
/**
 * Query hook for fetching a single SpatialRelation
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useSpatialRelationQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useSpatialRelationQuery<S extends SpatialRelationSelect, TData = {
    spatialRelation: InferSelectResult<SpatialRelationWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, SpatialRelationSelect>;
} & Omit<UseQueryOptions<{
    spatialRelation: InferSelectResult<SpatialRelationWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single SpatialRelation without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchSpatialRelationQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchSpatialRelationQuery<S extends SpatialRelationSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, SpatialRelationSelect>;
}): Promise<{
    spatialRelation: InferSelectResult<SpatialRelationWithRelations, S> | null;
}>;
/**
 * Prefetch a single SpatialRelation for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchSpatialRelationQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchSpatialRelationQuery<S extends SpatialRelationSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, SpatialRelationSelect>;
}): Promise<void>;
