/**
 * List query hook for UniqueConstraint
 * @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 { UniqueConstraintSelect, UniqueConstraintWithRelations, UniqueConstraintFilter, UniqueConstraintOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { UniqueConstraintSelect, UniqueConstraintWithRelations, UniqueConstraintFilter, UniqueConstraintOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const uniqueConstraintsQueryKey: (variables?: object) => readonly ["uniqueconstraint", "list", object];
/**
 * Query hook for fetching UniqueConstraint list
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useUniqueConstraintsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useUniqueConstraintsQuery<S extends UniqueConstraintSelect, TData = {
    uniqueConstraints: ConnectionResult<InferSelectResult<UniqueConstraintWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, UniqueConstraintFilter, UniqueConstraintOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, UniqueConstraintSelect>;
} & Omit<UseQueryOptions<{
    uniqueConstraints: ConnectionResult<InferSelectResult<UniqueConstraintWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch UniqueConstraint list without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchUniqueConstraintsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchUniqueConstraintsQuery<S extends UniqueConstraintSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, UniqueConstraintFilter, UniqueConstraintOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, UniqueConstraintSelect>;
}): Promise<{
    uniqueConstraints: ConnectionResult<InferSelectResult<UniqueConstraintWithRelations, S>>;
}>;
/**
 * Prefetch UniqueConstraint list for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchUniqueConstraintsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchUniqueConstraintsQuery<S extends UniqueConstraintSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, UniqueConstraintFilter, UniqueConstraintOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, UniqueConstraintSelect>;
}): Promise<void>;
