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