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