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