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