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