import { type DrizzleExecutor } from "../drizzle.js"; import { type MessageSummary, type MutationHint } from "../chat/types.js"; import type { AgentTurnBackgroundTerminalSummary, AgentTurnSubagentSummary, AgentTurnTraceUpdate } from "./types.js"; /** * Applies the next leased active-agent output chunk to agentTurns and its visible messages projection in sequence order. * Requiring users.active while committing checkpoint and chat delivery state prevents deactivated sessions from publishing and keeps authorized partial output resumable. */ export declare function agentTurnStreamReply(executor: DrizzleExecutor, input: { agentUserId: string; actorUserId: string; eventId: string; expectedEventId?: string; sessionId: string; streamCommittedText: string; /** Offset in `text` where the reply's final committed text block starts. */ finalTextOffset: number; userMessageId: string; text: string; traceUpdates: readonly AgentTurnTraceUpdate[]; subagents?: readonly AgentTurnSubagentSummary[]; backgroundTerminals?: readonly AgentTurnBackgroundTerminalSummary[]; workerId: string; }): Promise<{ applied: boolean; message?: MessageSummary; hint?: MutationHint; }>; //# sourceMappingURL=agentTurnStreamReply.d.ts.map