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