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