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