/**
 * Branch heads — mutable pointers into the commit chain
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { InfraRefSelect, InfraRefWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { InfraRefSelect, InfraRefWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const infraRefQueryKey: (id: string | number) => readonly ["infraref", "detail", string | number];
/**
 * Branch heads — mutable pointers into the commit chain
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useInfraRefQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useInfraRefQuery<S extends InfraRefSelect, TData = {
    infraRef: InferSelectResult<InfraRefWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, InfraRefSelect>;
} & Omit<UseQueryOptions<{
    infraRef: InferSelectResult<InfraRefWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Branch heads — mutable pointers into the commit chain
 *
 * @example
 * ```ts
 * const data = await fetchInfraRefQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchInfraRefQuery<S extends InfraRefSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, InfraRefSelect>;
}): Promise<{
    infraRef: InferSelectResult<InfraRefWithRelations, S> | null;
}>;
/**
 * Branch heads — mutable pointers into the commit chain
 *
 * @example
 * ```ts
 * await prefetchInfraRefQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchInfraRefQuery<S extends InfraRefSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, InfraRefSelect>;
}): Promise<void>;
