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