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