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