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