/**
 * 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 { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { AgentMessageSelect, AgentMessageWithRelations, CreateAgentMessageInput } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AgentMessageSelect, AgentMessageWithRelations, CreateAgentMessageInput, } from '../../orm/input-types';
/**
 * 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 { mutate, isPending } = useCreateAgentMessageMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ name: 'New item' });
 * ```
 */
export declare function useCreateAgentMessageMutation<S extends AgentMessageSelect>(params: {
    selection: {
        fields: S & AgentMessageSelect;
    } & HookStrictSelect<NoInfer<S>, AgentMessageSelect>;
} & Omit<UseMutationOptions<{
    createAgentMessage: {
        agentMessage: InferSelectResult<AgentMessageWithRelations, S>;
    };
}, Error, CreateAgentMessageInput['agentMessage']>, 'mutationFn'>): UseMutationResult<{
    createAgentMessage: {
        agentMessage: InferSelectResult<AgentMessageWithRelations, S>;
    };
}, Error, CreateAgentMessageInput['agentMessage']>;
