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