import { type DrizzleExecutor } from "../drizzle.js"; import { type MutationHint } from "../chat/types.js"; /** * Stops the chat's running agent turn on a reader's request and finishes it durably with whatever the agent had already streamed. * Releasing the lease inside the same transaction that publishes the reply is what makes the stop authoritative: the worker still * streaming this turn loses its next lease renewal and unwinds, so no second process can keep writing to a turn a person ended. * The turn is finished rather than deleted because its partial answer is already visible to everyone in the chat; queued turns for * the same chat stay pending, since stopping the current inference does not discard messages a person has already sent. */ export declare function agentTurnAbort(executor: DrizzleExecutor, input: { agentUserId: string; chatId: string; }): Promise<{ hint: MutationHint; runId?: string; sessionId: string; userMessageId: string; } | undefined>; //# sourceMappingURL=agentTurnAbort.d.ts.map