/**
 * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
 * @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 { AgentMessageSelect, AgentMessageWithRelations, AgentMessageFilter, AgentMessageOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { AgentMessageSelect, AgentMessageWithRelations, AgentMessageFilter, AgentMessageOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const agentMessagesQueryKey: (variables?: object) => readonly ["agentmessage", "list", object];
/**
 * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAgentMessagesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useAgentMessagesQuery<S extends AgentMessageSelect, TData = {
    agentMessages: ConnectionResult<InferSelectResult<AgentMessageWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AgentMessageFilter, AgentMessageOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentMessageSelect>;
} & Omit<UseQueryOptions<{
    agentMessages: ConnectionResult<InferSelectResult<AgentMessageWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
 *
 * @example
 * ```ts
 * const data = await fetchAgentMessagesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchAgentMessagesQuery<S extends AgentMessageSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AgentMessageFilter, AgentMessageOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentMessageSelect>;
}): Promise<{
    agentMessages: ConnectionResult<InferSelectResult<AgentMessageWithRelations, S>>;
}>;
/**
 * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
 *
 * @example
 * ```ts
 * await prefetchAgentMessagesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchAgentMessagesQuery<S extends AgentMessageSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AgentMessageFilter, AgentMessageOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentMessageSelect>;
}): Promise<void>;
