import { R as StreamingMode, a as ChannelPreviewStreamingConfig, c as ChannelStreamingConfig, i as ChannelDeliveryStreamingConfig, l as ChannelStreamingPreviewConfig, o as ChannelStreamingBlockConfig, s as ChannelStreamingCommandTextMode, u as ChannelStreamingProgressConfig, z as TextChunkMode } from "./types.base-BhpfV4ef.js";
import { a as SlackChannelStreamingConfig } from "./types.slack-BJW0swrN.js";
import { i as resolveOutboundSendDep, t as OutboundSendDeps } from "./send-deps-BaEC80iY.js";
import { A as LiveMessageState, B as RenderedMessageBatchPlan, C as DeriveDurableFinalDeliveryRequirementsParams, D as DurableFinalRequirementExtras, E as DurableFinalDeliveryRequirementMap, F as MessageReceiptPart, H as RenderedMessageBatchPlanKind, I as MessageReceiptPartKind, L as MessageReceiptSourceResult, M as LivePreviewFinalizerCapabilityMap, N as MessageDurabilityPolicy, O as DurableMessageSendIntent, P as MessageReceipt, R as MessageSendContext, S as ChannelMessageUnknownSendReconciliationResult, T as DurableFinalDeliveryPayloadShape, V as RenderedMessageBatchPlanItem, _ as ChannelMessageSendPollContext, a as ChannelMessageLiveCapability, b as ChannelMessageSendTextContext, c as ChannelMessageReceiveAdapterShape, d as ChannelMessageSendAttemptKind, f as ChannelMessageSendCommitContext, g as ChannelMessageSendPayloadContext, h as ChannelMessageSendMediaContext, i as ChannelMessageLiveAdapterShape, j as LivePreviewFinalizerCapability, k as LiveMessagePhase, l as ChannelMessageSendAdapter, m as ChannelMessageSendLifecycleAdapter, n as ChannelMessageAdapterShape, o as ChannelMessageLiveFinalizerAdapterShape, p as ChannelMessageSendFailureContext, r as ChannelMessageDurableFinalAdapter, s as ChannelMessageReceiveAckPolicy, t as ChannelMessageAdapter, u as ChannelMessageSendAttemptContext, v as ChannelMessageSendResult, w as DurableFinalDeliveryCapability, x as ChannelMessageUnknownSendContext, y as ChannelMessageSendSuccessContext, z as RenderedMessageBatch } from "./types-CjDwEn4d.js";
import { d as OutboundDeliveryFormattingOptions, u as OutboundIdentity } from "./outbound.types-BFO6BpM-.js";
import { i as createTypingCallbacks } from "./response-prefix-template-CYdaTWLL.js";
import { o as OutboundSessionContext, s as buildOutboundSessionContext, u as resolveAgentOutboundIdentity } from "./delivery-queue-Dan25QaI.js";
import { c as projectOutboundPayloadPlanForDelivery, s as createOutboundPayloadPlan } from "./deliver-BXDj2Z9g.js";
import { a as resolveChannelSourceReplyDeliveryMode, i as createChannelReplyPipeline, n as CreateChannelReplyPipelineParams, t as ChannelReplyPipeline } from "./reply-pipeline-BnvPj9Up.js";
import { i as createReplyPrefixOptions, r as createReplyPrefixContext } from "./reply-prefix-DaxflCf6.js";
import { c as resolveChannelTurnDispatchCounts, d as DurableInboundReplyDeliveryResult, f as deliverInboundReplyWithMessageSendContext$1, l as DurableInboundReplyDeliveryOptions, o as hasFinalChannelTurnDispatch, s as hasVisibleChannelTurnDispatch, u as DurableInboundReplyDeliveryParams } from "./kernel-C2OTiIUZ.js";
import { a as createChannelRunQueue, c as waitUntilAbort, i as createAccountStatusSink, n as ChannelRunQueueParams, o as keepHttpServerTaskAlive, r as ChannelRunQueueTaskContext, s as runPassiveAccountLifecycle, t as ChannelRunQueue } from "./channel-lifecycle.core-Mk2VbLgc.js";
import { i as logTypingFailure, n as logAckFailure } from "./logging-BuEYHHqy.js";
import { a as buildChannelMessageReplyDispatchBase, c as dispatchChannelMessageReplyWithBase, d as hasFinalChannelMessageReplyDispatch, f as hasVisibleChannelMessageReplyDispatch, h as resolveChannelMessageReplyDispatchCounts, p as recordChannelMessageReplyDispatch } from "./inbound-reply-dispatch-QOXdWZWK.js";
import { _ as deliverWithFinalizableLivePreviewAdapter, a as createFinalizableDraftStreamControlsForState, b as markLiveMessagePreviewUpdated, c as createDraftStreamLoop, d as LivePreviewFinalizerResult, f as LivePreviewFinalizerResultKind, g as deliverFinalizableLivePreview, h as defineFinalizableLivePreviewAdapter, i as createFinalizableDraftStreamControls, l as FinalizableLivePreviewAdapter, m as createPreviewMessageReceipt, n as clearFinalizableDraftMessage, o as takeMessageIdAfterStop, p as createLiveMessageState, r as createFinalizableDraftLifecycle, s as DraftStreamLoop, t as FinalizableDraftStreamState, u as LivePreviewFinalizerDraft, v as markLiveMessageCancelled, y as markLiveMessageFinalized } from "./draft-stream-controls-BmKOMqfR.js";
import { $ as ChannelMessageOutboundBridgeResult, A as LivePreviewFinalizerCapabilityProofResult, B as verifyChannelMessageReceiveAckPolicyProofs, C as ChannelMessageReceiveAckPolicyProofMap, D as DurableFinalCapabilityProofResult, E as DurableFinalCapabilityProofMap, F as verifyChannelMessageAdapterCapabilityProofs, G as DurableInboundReceiveCompleteOptions, H as verifyLivePreviewFinalizerCapabilityProofs, I as verifyChannelMessageLiveCapabilityAdapterProofs, J as DurableInboundReceiveJournalOptions, K as DurableInboundReceiveCompletedRecord, L as verifyChannelMessageLiveCapabilityProofs, M as listDeclaredDurableFinalCapabilities, N as listDeclaredLivePreviewFinalizerCapabilities, O as LivePreviewFinalizerCapabilityProof, P as listDeclaredReceiveAckPolicies, Q as ChannelMessageOutboundBridgeAdapter, R as verifyChannelMessageLiveFinalizerProofs, S as ChannelMessageReceiveAckPolicyProof, T as DurableFinalCapabilityProof, U as DurableInboundReceiveAcceptOptions, V as verifyDurableFinalCapabilityProofs, W as DurableInboundReceiveAcceptResult, X as DurableInboundReceiveReleaseOptions, Y as DurableInboundReceivePendingRecord, Z as createDurableInboundReceiveJournal, _ as listMessageReceiptPlatformIds, a as createReplyToFanout, at as DurableMessageBatchSendResult, b as ChannelMessageLiveCapabilityProofMap, c as classifyDurableSendRecoveryState, d as MessageAckStage, et as CreateChannelMessageAdapterFromOutboundParams, f as MessageAckState, g as createMessageReceiptFromOutboundResults, h as shouldAckMessageAfterStage, i as ReplyToResolution, it as DurableMessageBatchSendParams, j as listDeclaredChannelMessageLiveCapabilities, k as LivePreviewFinalizerCapabilityProofMap, l as createDurableMessageStateRecord, m as createMessageReceiveContext, n as sendDurableMessageBatch, nt as defineChannelMessageAdapter, o as DurableMessageSendState, ot as DurableMessageSendContext, p as MessageReceiveContext, q as DurableInboundReceiveJournal, r as withDurableMessageSendContext, rt as deriveDurableFinalDeliveryRequirements, s as DurableMessageStateRecord, st as DurableMessageSendContextParams, t as deliverInboundReplyWithMessageSendContext, tt as createChannelMessageAdapterFromOutbound, u as MessageAckPolicy, v as resolveMessageReceiptPrimaryId, w as ChannelMessageReceiveAckPolicyProofResult, x as ChannelMessageLiveCapabilityProofResult, y as ChannelMessageLiveCapabilityProof, z as verifyChannelMessageReceiveAckPolicyAdapterProofs } from "./channel-outbound-Ux-1giZX.js";
import { n as createRuntimeOutboundDelegates } from "./runtime-forwarders-BnVLtOiK.js";
import { t as sanitizeForPlainText } from "./sanitize-text-D9_tNR2w.js";
import { A as resolveChannelStreamingPreviewChunk, C as resolveChannelProgressDraftMaxLineChars, D as resolveChannelStreamingBlockEnabled, E as resolveChannelStreamingBlockCoalesce, F as resolveChannelStreamingProgressCommentary, I as resolveChannelStreamingSuppressDefaultToolProgressMessages, L as resolveTranscriptBackedChannelFinalText, M as resolveChannelStreamingPreviewNativeToolProgress, N as resolveChannelStreamingPreviewNativeToolProgressAllowFrom, O as resolveChannelStreamingChunkMode, P as resolveChannelStreamingPreviewToolProgress, R as selectLongerFinalText, S as resolveChannelProgressDraftLineOptions, T as resolveChannelProgressDraftRender, _ as mergeChannelProgressDraftLine, a as ChannelProgressLineOptions, b as resolveChannelProgressDraftConfig, c as buildChannelProgressDraftLine, d as formatChannelProgressDraftLine, f as formatChannelProgressDraftLineForEntry, g as isPotentialTruncatedFinal, h as isChannelProgressDraftWorkToolName, i as ChannelProgressDraftRenderMode, j as resolveChannelStreamingPreviewCommandText, k as resolveChannelStreamingNativeTransport, l as buildChannelProgressDraftLineForEntry, m as getChannelStreamingConfigObject, n as ChannelProgressDraftLineInput, o as DEFAULT_PROGRESS_DRAFT_INITIAL_DELAY_MS, p as formatChannelProgressDraftText, r as ChannelProgressDraftLineKind, s as DEFAULT_PROGRESS_DRAFT_LABELS, t as ChannelProgressDraftLine, u as createChannelProgressDraftGate, v as normalizeChannelProgressDraftLineIdentity, w as resolveChannelProgressDraftMaxLines, x as resolveChannelProgressDraftLabel, y as resolveChannelPreviewStreamMode } from "./streaming-CAzn36QS.js";
//#region src/plugin-sdk/channel-message.d.ts
/** @deprecated Use `createChannelMessageReplyPipeline(...)` from `nodmix/plugin-sdk/channel-outbound`. */
declare function createChannelTurnReplyPipeline(params: CreateChannelReplyPipelineParams): ChannelReplyPipeline;
/** @deprecated Use `deliverInboundReplyWithMessageSendContext(...)` from `nodmix/plugin-sdk/channel-outbound`. */
declare const deliverDurableInboundReplyPayload: typeof deliverInboundReplyWithMessageSendContext$1;
//#endregion
export { type ChannelDeliveryStreamingConfig, type ChannelMessageAdapter, type ChannelMessageAdapterShape, type ChannelMessageDurableFinalAdapter, type ChannelMessageLiveAdapterShape, type ChannelMessageLiveCapability, type ChannelMessageLiveCapabilityProof, type ChannelMessageLiveCapabilityProofMap, type ChannelMessageLiveCapabilityProofResult, type ChannelMessageLiveFinalizerAdapterShape, type ChannelMessageOutboundBridgeAdapter, type ChannelMessageOutboundBridgeResult, type ChannelMessageReceiveAckPolicy, type ChannelMessageReceiveAckPolicyProof, type ChannelMessageReceiveAckPolicyProofMap, type ChannelMessageReceiveAckPolicyProofResult, type ChannelMessageReceiveAdapterShape, type ChannelMessageSendAdapter, type ChannelMessageSendAttemptContext, type ChannelMessageSendAttemptKind, type ChannelMessageSendCommitContext, type ChannelMessageSendFailureContext, type ChannelMessageSendLifecycleAdapter, type ChannelMessageSendMediaContext, type ChannelMessageSendPayloadContext, type ChannelMessageSendPollContext, type ChannelMessageSendResult, type ChannelMessageSendSuccessContext, type ChannelMessageSendTextContext, type ChannelMessageUnknownSendContext, type ChannelMessageUnknownSendReconciliationResult, type ChannelPreviewStreamingConfig, ChannelProgressDraftLine, ChannelProgressDraftLineInput, ChannelProgressDraftLineKind, ChannelProgressDraftRenderMode, ChannelProgressLineOptions, type ChannelRunQueue, type ChannelRunQueueParams, type ChannelRunQueueTaskContext, type ChannelStreamingBlockConfig, type ChannelStreamingCommandTextMode, type ChannelStreamingConfig, type ChannelStreamingPreviewConfig, type ChannelStreamingProgressConfig, type CreateChannelMessageAdapterFromOutboundParams, type CreateChannelReplyPipelineParams, DEFAULT_PROGRESS_DRAFT_INITIAL_DELAY_MS, DEFAULT_PROGRESS_DRAFT_LABELS, type DeriveDurableFinalDeliveryRequirementsParams, type DraftStreamLoop, type DurableFinalCapabilityProof, type DurableFinalCapabilityProofMap, type DurableFinalCapabilityProofResult, type DurableFinalDeliveryCapability, type DurableFinalDeliveryPayloadShape, type DurableFinalDeliveryRequirementMap, type DurableFinalRequirementExtras, type DurableInboundReceiveAcceptOptions, type DurableInboundReceiveAcceptResult, type DurableInboundReceiveCompleteOptions, type DurableInboundReceiveCompletedRecord, type DurableInboundReceiveJournal, type DurableInboundReceiveJournalOptions, type DurableInboundReceivePendingRecord, type DurableInboundReceiveReleaseOptions, type DurableInboundReplyDeliveryOptions, type DurableInboundReplyDeliveryParams, type DurableInboundReplyDeliveryResult, type DurableMessageBatchSendParams, type DurableMessageBatchSendResult, type DurableMessageSendContext, type DurableMessageSendContextParams, type DurableMessageSendIntent, type DurableMessageSendState, type DurableMessageStateRecord, type FinalizableDraftStreamState, type FinalizableLivePreviewAdapter, type LiveMessagePhase, type LiveMessageState, type LivePreviewFinalizerCapability, type LivePreviewFinalizerCapabilityMap, type LivePreviewFinalizerCapabilityProof, type LivePreviewFinalizerCapabilityProofMap, type LivePreviewFinalizerCapabilityProofResult, type LivePreviewFinalizerDraft, type LivePreviewFinalizerResult, type LivePreviewFinalizerResultKind, type MessageAckPolicy, type MessageAckStage, type MessageAckState, type MessageDurabilityPolicy, type MessageReceipt, type MessageReceiptPart, type MessageReceiptPartKind, type MessageReceiptSourceResult, type MessageReceiveContext, type MessageSendContext, type OutboundDeliveryFormattingOptions, type OutboundIdentity, type OutboundSendDeps, type OutboundSessionContext, type RenderedMessageBatch, type RenderedMessageBatchPlan, type RenderedMessageBatchPlanItem, type RenderedMessageBatchPlanKind, type ReplyToResolution, type SlackChannelStreamingConfig, type StreamingMode, type TextChunkMode, buildChannelMessageReplyDispatchBase, buildChannelProgressDraftLine, buildChannelProgressDraftLineForEntry, buildOutboundSessionContext, classifyDurableSendRecoveryState, clearFinalizableDraftMessage, createAccountStatusSink, createChannelMessageAdapterFromOutbound, createChannelReplyPipeline as createChannelMessageReplyPipeline, createChannelProgressDraftGate, createChannelRunQueue, createChannelTurnReplyPipeline, createDraftStreamLoop, createDurableInboundReceiveJournal, createDurableMessageStateRecord, createFinalizableDraftLifecycle, createFinalizableDraftStreamControls, createFinalizableDraftStreamControlsForState, createLiveMessageState, createMessageReceiptFromOutboundResults, createMessageReceiveContext, createOutboundPayloadPlan, createPreviewMessageReceipt, createReplyPrefixContext, createReplyPrefixOptions, createReplyToFanout, createRuntimeOutboundDelegates, createTypingCallbacks, defineChannelMessageAdapter, defineFinalizableLivePreviewAdapter, deliverDurableInboundReplyPayload, deliverFinalizableLivePreview, deliverInboundReplyWithMessageSendContext, deliverWithFinalizableLivePreviewAdapter, deriveDurableFinalDeliveryRequirements, dispatchChannelMessageReplyWithBase, formatChannelProgressDraftLine, formatChannelProgressDraftLineForEntry, formatChannelProgressDraftText, getChannelStreamingConfigObject, hasFinalChannelMessageReplyDispatch, hasFinalChannelTurnDispatch, hasVisibleChannelMessageReplyDispatch, hasVisibleChannelTurnDispatch, isChannelProgressDraftWorkToolName, isPotentialTruncatedFinal, keepHttpServerTaskAlive, listDeclaredChannelMessageLiveCapabilities, listDeclaredDurableFinalCapabilities, listDeclaredLivePreviewFinalizerCapabilities, listDeclaredReceiveAckPolicies, listMessageReceiptPlatformIds, logAckFailure, logTypingFailure, markLiveMessageCancelled, markLiveMessageFinalized, markLiveMessagePreviewUpdated, mergeChannelProgressDraftLine, normalizeChannelProgressDraftLineIdentity, projectOutboundPayloadPlanForDelivery, recordChannelMessageReplyDispatch, resolveAgentOutboundIdentity, resolveChannelMessageReplyDispatchCounts, resolveChannelSourceReplyDeliveryMode as resolveChannelMessageSourceReplyDeliveryMode, resolveChannelPreviewStreamMode, resolveChannelProgressDraftConfig, resolveChannelProgressDraftLabel, resolveChannelProgressDraftLineOptions, resolveChannelProgressDraftMaxLineChars, resolveChannelProgressDraftMaxLines, resolveChannelProgressDraftRender, resolveChannelStreamingBlockCoalesce, resolveChannelStreamingBlockEnabled, resolveChannelStreamingChunkMode, resolveChannelStreamingNativeTransport, resolveChannelStreamingPreviewChunk, resolveChannelStreamingPreviewCommandText, resolveChannelStreamingPreviewNativeToolProgress, resolveChannelStreamingPreviewNativeToolProgressAllowFrom, resolveChannelStreamingPreviewToolProgress, resolveChannelStreamingProgressCommentary, resolveChannelStreamingSuppressDefaultToolProgressMessages, resolveChannelTurnDispatchCounts, resolveMessageReceiptPrimaryId, resolveOutboundSendDep, resolveTranscriptBackedChannelFinalText, runPassiveAccountLifecycle, sanitizeForPlainText, selectLongerFinalText, sendDurableMessageBatch, shouldAckMessageAfterStage, takeMessageIdAfterStop, verifyChannelMessageAdapterCapabilityProofs, verifyChannelMessageLiveCapabilityAdapterProofs, verifyChannelMessageLiveCapabilityProofs, verifyChannelMessageLiveFinalizerProofs, verifyChannelMessageReceiveAckPolicyAdapterProofs, verifyChannelMessageReceiveAckPolicyProofs, verifyDurableFinalCapabilityProofs, verifyLivePreviewFinalizerCapabilityProofs, waitUntilAbort, withDurableMessageSendContext };