/**
 * List 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 { ListSelectionConfig } from '../selection';
import type { SpatialRelationSelect, SpatialRelationWithRelations, SpatialRelationFilter, SpatialRelationOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { SpatialRelationSelect, SpatialRelationWithRelations, SpatialRelationFilter, SpatialRelationOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const spatialRelationsQueryKey: (variables?: object) => readonly ["spatialrelation", "list", object];
/**
 * Query hook for fetching SpatialRelation list
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useSpatialRelationsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useSpatialRelationsQuery<S extends SpatialRelationSelect, TData = {
    spatialRelations: ConnectionResult<InferSelectResult<SpatialRelationWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, SpatialRelationFilter, SpatialRelationOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SpatialRelationSelect>;
} & Omit<UseQueryOptions<{
    spatialRelations: ConnectionResult<InferSelectResult<SpatialRelationWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch SpatialRelation list without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchSpatialRelationsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchSpatialRelationsQuery<S extends SpatialRelationSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, SpatialRelationFilter, SpatialRelationOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SpatialRelationSelect>;
}): Promise<{
    spatialRelations: ConnectionResult<InferSelectResult<SpatialRelationWithRelations, S>>;
}>;
/**
 * Prefetch SpatialRelation list for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchSpatialRelationsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchSpatialRelationsQuery<S extends SpatialRelationSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, SpatialRelationFilter, SpatialRelationOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SpatialRelationSelect>;
}): Promise<void>;
