/**
 * 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 { 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];
/**
 * Message within an agent thread with TextPart/ToolPart jsonb parts
 *
 * @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>;
/**
 * Message within an agent thread with TextPart/ToolPart jsonb parts
 *
 * @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>>;
}>;
/**
 * Message within an agent thread with TextPart/ToolPart jsonb parts
 *
 * @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>;
