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