/**
 * 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 { ListSelectionConfig } from '../selection';
import type { InfraRefSelect, InfraRefWithRelations, InfraRefFilter, InfraRefOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { InfraRefSelect, InfraRefWithRelations, InfraRefFilter, InfraRefOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const infraRefsQueryKey: (variables?: object) => readonly ["infraref", "list", object];
/**
 * Branch heads — mutable pointers into the commit chain
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useInfraRefsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useInfraRefsQuery<S extends InfraRefSelect, TData = {
    infraRefs: ConnectionResult<InferSelectResult<InfraRefWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, InfraRefFilter, InfraRefOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, InfraRefSelect>;
} & Omit<UseQueryOptions<{
    infraRefs: ConnectionResult<InferSelectResult<InfraRefWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Branch heads — mutable pointers into the commit chain
 *
 * @example
 * ```ts
 * const data = await fetchInfraRefsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchInfraRefsQuery<S extends InfraRefSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, InfraRefFilter, InfraRefOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, InfraRefSelect>;
}): Promise<{
    infraRefs: ConnectionResult<InferSelectResult<InfraRefWithRelations, S>>;
}>;
/**
 * Branch heads — mutable pointers into the commit chain
 *
 * @example
 * ```ts
 * await prefetchInfraRefsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchInfraRefsQuery<S extends InfraRefSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, InfraRefFilter, InfraRefOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, InfraRefSelect>;
}): Promise<void>;
