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