/**
 * Single item query hook for CheckConstraint
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { CheckConstraintSelect, CheckConstraintWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { CheckConstraintSelect, CheckConstraintWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const checkConstraintQueryKey: (id: string | number) => readonly ["checkconstraint", "detail", string | number];
/**
 * Query hook for fetching a single CheckConstraint
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useCheckConstraintQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useCheckConstraintQuery<S extends CheckConstraintSelect, TData = {
    checkConstraint: InferSelectResult<CheckConstraintWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, CheckConstraintSelect>;
} & Omit<UseQueryOptions<{
    checkConstraint: InferSelectResult<CheckConstraintWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single CheckConstraint without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchCheckConstraintQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchCheckConstraintQuery<S extends CheckConstraintSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, CheckConstraintSelect>;
}): Promise<{
    checkConstraint: InferSelectResult<CheckConstraintWithRelations, S> | null;
}>;
/**
 * Prefetch a single CheckConstraint for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchCheckConstraintQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchCheckConstraintQuery<S extends CheckConstraintSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, CheckConstraintSelect>;
}): Promise<void>;
