/**
 * List 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 { ListSelectionConfig } from '../selection';
import type { EnumSelect, EnumWithRelations, EnumFilter, EnumOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { EnumSelect, EnumWithRelations, EnumFilter, EnumOrderBy } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const enumsQueryKey: (variables?: object) => readonly ["enum", "list", object];
/**
 * Query hook for fetching Enum list
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useEnumsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useEnumsQuery<S extends EnumSelect, TData = {
    enums: ConnectionResult<InferSelectResult<EnumWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, EnumFilter, EnumOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, EnumSelect>;
} & Omit<UseQueryOptions<{
    enums: ConnectionResult<InferSelectResult<EnumWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch Enum list without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchEnumsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchEnumsQuery<S extends EnumSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, EnumFilter, EnumOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, EnumSelect>;
}): Promise<{
    enums: ConnectionResult<InferSelectResult<EnumWithRelations, S>>;
}>;
/**
 * Prefetch Enum list for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchEnumsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchEnumsQuery<S extends EnumSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, EnumFilter, EnumOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, EnumSelect>;
}): Promise<void>;
