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