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