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