/**
 * Message within an agent thread with TextPart/ToolPart jsonb parts
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const agentMessageQueryKey: (id: string | number) => readonly ["agentmessage", "detail", string | number];
/**
 * Message within an agent thread with TextPart/ToolPart jsonb parts
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAgentMessageQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useAgentMessageQuery<S extends AgentMessageSelect, TData = {
    agentMessage: InferSelectResult<AgentMessageWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AgentMessageSelect>;
} & Omit<UseQueryOptions<{
    agentMessage: InferSelectResult<AgentMessageWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Message within an agent thread with TextPart/ToolPart jsonb parts
 *
 * @example
 * ```ts
 * const data = await fetchAgentMessageQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchAgentMessageQuery<S extends AgentMessageSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AgentMessageSelect>;
}): Promise<{
    agentMessage: InferSelectResult<AgentMessageWithRelations, S> | null;
}>;
/**
 * Message within an agent thread with TextPart/ToolPart jsonb parts
 *
 * @example
 * ```ts
 * await prefetchAgentMessageQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchAgentMessageQuery<S extends AgentMessageSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AgentMessageSelect>;
}): Promise<void>;
