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