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