/**
 * 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 { ListSelectionConfig } from '../selection';
import type { InfraObjectSelect, InfraObjectWithRelations, InfraObjectFilter, InfraObjectOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { InfraObjectSelect, InfraObjectWithRelations, InfraObjectFilter, InfraObjectOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const infraObjectsQueryKey: (variables?: object) => readonly ["infraobject", "list", object];
/**
 * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useInfraObjectsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useInfraObjectsQuery<S extends InfraObjectSelect, TData = {
    infraObjects: ConnectionResult<InferSelectResult<InfraObjectWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, InfraObjectFilter, InfraObjectOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, InfraObjectSelect>;
} & Omit<UseQueryOptions<{
    infraObjects: ConnectionResult<InferSelectResult<InfraObjectWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children
 *
 * @example
 * ```ts
 * const data = await fetchInfraObjectsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchInfraObjectsQuery<S extends InfraObjectSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, InfraObjectFilter, InfraObjectOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, InfraObjectSelect>;
}): Promise<{
    infraObjects: ConnectionResult<InferSelectResult<InfraObjectWithRelations, S>>;
}>;
/**
 * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children
 *
 * @example
 * ```ts
 * await prefetchInfraObjectsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchInfraObjectsQuery<S extends InfraObjectSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, InfraObjectFilter, InfraObjectOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, InfraObjectSelect>;
}): Promise<void>;
