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