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