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