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