/**
 * Agent instance registry (human-managed or ephemeral sub-agents)
 * @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 { AgentSelect, AgentWithRelations, AgentFilter, AgentOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { AgentSelect, AgentWithRelations, AgentFilter, AgentOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const agentsQueryKey: (variables?: object) => readonly ["agent", "list", object];
/**
 * Agent instance registry (human-managed or ephemeral sub-agents)
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAgentsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useAgentsQuery<S extends AgentSelect, TData = {
    agents: ConnectionResult<InferSelectResult<AgentWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AgentFilter, AgentOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentSelect>;
} & Omit<UseQueryOptions<{
    agents: ConnectionResult<InferSelectResult<AgentWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Agent instance registry (human-managed or ephemeral sub-agents)
 *
 * @example
 * ```ts
 * const data = await fetchAgentsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchAgentsQuery<S extends AgentSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AgentFilter, AgentOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentSelect>;
}): Promise<{
    agents: ConnectionResult<InferSelectResult<AgentWithRelations, S>>;
}>;
/**
 * Agent instance registry (human-managed or ephemeral sub-agents)
 *
 * @example
 * ```ts
 * await prefetchAgentsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchAgentsQuery<S extends AgentSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AgentFilter, AgentOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentSelect>;
}): Promise<void>;
