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