/**
 * 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 { AgentSelect, AgentWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AgentSelect, AgentWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const agentQueryKey: (id: string | number) => readonly ["agent", "detail", string | number];
/**
 * Agent instance registry (human-managed or ephemeral sub-agents)
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAgentQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useAgentQuery<S extends AgentSelect, TData = {
    agent: InferSelectResult<AgentWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AgentSelect>;
} & Omit<UseQueryOptions<{
    agent: InferSelectResult<AgentWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Agent instance registry (human-managed or ephemeral sub-agents)
 *
 * @example
 * ```ts
 * const data = await fetchAgentQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchAgentQuery<S extends AgentSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AgentSelect>;
}): Promise<{
    agent: InferSelectResult<AgentWithRelations, S> | null;
}>;
/**
 * Agent instance registry (human-managed or ephemeral sub-agents)
 *
 * @example
 * ```ts
 * await prefetchAgentQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchAgentQuery<S extends AgentSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AgentSelect>;
}): Promise<void>;
