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