/**
 * Top-level AI/LLM conversation thread
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const agentThreadQueryKey: (id: string | number) => readonly ["agentthread", "detail", string | number];
/**
 * Top-level AI/LLM conversation thread
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAgentThreadQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useAgentThreadQuery<S extends AgentThreadSelect, TData = {
    agentThread: InferSelectResult<AgentThreadWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AgentThreadSelect>;
} & Omit<UseQueryOptions<{
    agentThread: InferSelectResult<AgentThreadWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Top-level AI/LLM conversation thread
 *
 * @example
 * ```ts
 * const data = await fetchAgentThreadQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchAgentThreadQuery<S extends AgentThreadSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AgentThreadSelect>;
}): Promise<{
    agentThread: InferSelectResult<AgentThreadWithRelations, S> | null;
}>;
/**
 * Top-level AI/LLM conversation thread
 *
 * @example
 * ```ts
 * await prefetchAgentThreadQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchAgentThreadQuery<S extends AgentThreadSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AgentThreadSelect>;
}): Promise<void>;
