/**
 * Single item 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 { UniqueConstraintSelect, UniqueConstraintWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { UniqueConstraintSelect, UniqueConstraintWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const uniqueConstraintQueryKey: (id: string | number) => readonly ["uniqueconstraint", "detail", string | number];
/**
 * Query hook for fetching a single UniqueConstraint
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useUniqueConstraintQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useUniqueConstraintQuery<S extends UniqueConstraintSelect, TData = {
    uniqueConstraint: InferSelectResult<UniqueConstraintWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, UniqueConstraintSelect>;
} & Omit<UseQueryOptions<{
    uniqueConstraint: InferSelectResult<UniqueConstraintWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single UniqueConstraint without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchUniqueConstraintQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchUniqueConstraintQuery<S extends UniqueConstraintSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, UniqueConstraintSelect>;
}): Promise<{
    uniqueConstraint: InferSelectResult<UniqueConstraintWithRelations, S> | null;
}>;
/**
 * Prefetch a single UniqueConstraint for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchUniqueConstraintQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchUniqueConstraintQuery<S extends UniqueConstraintSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, UniqueConstraintSelect>;
}): Promise<void>;
