import type { MessageSummary, MutationHint } from "../chat/types.js"; import type { DrizzleExecutor } from "../drizzle.js"; /** * Materializes the empty assistant reply, links agentTurns, and inserts the first agentTurnTraceEntries span for an active agent's worker-owned running turn. * Requiring users.active prevents stale sessions from creating output; authorized retries reuse the stable message identity and only publish when the trace had to be initialized. */ export declare function agentTurnTraceStart(executor: DrizzleExecutor, input: { agentUserId: string; actorUserId: string; chatId: string; sessionId: string; startedAt: string; userMessageId: string; workerId: string; }): Promise<{ message: MessageSummary; hint: MutationHint; } | undefined>; //# sourceMappingURL=agentTurnTraceStart.d.ts.map