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