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