/**
 * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { InfraObjectSelect, InfraObjectWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { InfraObjectSelect, InfraObjectWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const infraGetNodeAtPathQueryKey: (id: string | number) => readonly ["infraobject", "detail", string | number];
/**
 * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useInfraObjectQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useInfraObjectQuery<S extends InfraObjectSelect, TData = {
    infraGetNodeAtPath: InferSelectResult<InfraObjectWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, InfraObjectSelect>;
} & Omit<UseQueryOptions<{
    infraGetNodeAtPath: InferSelectResult<InfraObjectWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children
 *
 * @example
 * ```ts
 * const data = await fetchInfraObjectQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchInfraObjectQuery<S extends InfraObjectSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, InfraObjectSelect>;
}): Promise<{
    infraGetNodeAtPath: InferSelectResult<InfraObjectWithRelations, S> | null;
}>;
/**
 * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children
 *
 * @example
 * ```ts
 * await prefetchInfraObjectQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchInfraObjectQuery<S extends InfraObjectSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, InfraObjectSelect>;
}): Promise<void>;
