import { createChannelReplyPipeline } from "../message/reply-pipeline.js"; import type { CreateChannelReplyPipelineParams } from "../message/reply-pipeline.js"; export { buildChannelInboundEventContext, filterChannelInboundSupplementalContext, } from "../inbound-event/context.js"; export type { BuildChannelInboundEventContextParams } from "../inbound-event/context.js"; export { clearChannelBotPairLoopGuardForTests, listTrackedChannelBotPairsForTests, recordChannelBotPairLoopAndCheckSuppression, } from "./bot-loop-protection.js"; export { createChannelHistoryWindow } from "./history-window.js"; export type { ChannelHistoryWindow } from "./history-window.js"; export type { ChannelBotLoopProtectionFacts } from "./bot-loop-protection.js"; export { deliverDurableInboundReplyPayload, deliverInboundReplyWithMessageSendContext, isDurableInboundReplyDeliveryHandled, throwIfDurableInboundReplyDeliveryFailed, } from "./durable-delivery.js"; export type { DurableInboundReplyDeliveryOptions, DurableInboundReplyDeliveryParams, DurableInboundReplyDeliveryResult, } from "./durable-delivery.js"; import type { AssembledChannelTurn, ChannelTurnAdmission, ChannelEventDeliveryAdapter, ChannelTurnResult, DispatchedChannelTurnResult, NormalizedTurnInput, PreparedChannelTurn, PreflightFacts, RunChannelTurnParams, RunResolvedChannelTurnParams } from "./types.js"; export { createChannelDeliveryResultFromReceipt } from "./delivery-result.js"; export { EMPTY_CHANNEL_TURN_DISPATCH_COUNTS, hasFinalChannelTurnDispatch, hasVisibleChannelTurnDispatch, resolveChannelTurnDispatchCounts, type ChannelTurnDispatchResultLike, type ChannelTurnVisibleDeliverySignals, } from "./dispatch-result.js"; export type { AccessFacts, AssembledChannelTurn, ChannelDeliveryInfo, ChannelDeliveryResult, ChannelEventClass, ChannelTurnAdapter, ChannelTurnAdmission, ChannelEventDeliveryAdapter, ChannelTurnDroppedHistoryOptions, ChannelTurnHistoryFinalizeOptions, ChannelTurnDispatcherOptions, ChannelTurnLogEvent, ChannelTurnRecordOptions, ChannelTurnReplyPipelineOptions, ChannelTurnResolved, ChannelTurnResult, DispatchedChannelTurnResult, ConversationFacts, MessageFacts, NormalizedTurnInput, PreflightFacts, PreparedChannelTurn, ReplyPlanFacts, RouteFacts, RunChannelTurnParams, RunResolvedChannelTurnParams, SenderFacts, SupplementalContextFacts, } from "./types.js"; export type { InboundMediaFacts } from "./types.js"; /** * @deprecated Compatibility assembly for legacy buffered reply dispatchers. * New channel plugins should expose `defineChannelMessageAdapter(...)` from * `klaw/plugin-sdk/channel-message` and route send/receive behavior through * the message lifecycle helpers. */ export declare function createChannelTurnReplyPipeline(params: CreateChannelReplyPipelineParams): ReturnType; export declare function createNoopChannelEventDeliveryAdapter(): ChannelEventDeliveryAdapter; export declare function recordDroppedChannelTurnHistory(params: { input: NormalizedTurnInput; preflight: PreflightFacts; admission?: ChannelTurnAdmission; }): Promise; type AssembledChannelTurnWithBotLoopProtection = AssembledChannelTurn & { botLoopProtection: NonNullable; }; type AssembledChannelTurnWithoutBotLoopProtection = Omit & { botLoopProtection?: undefined; }; export declare function dispatchAssembledChannelTurn(params: AssembledChannelTurnWithBotLoopProtection): Promise; export declare function dispatchAssembledChannelTurn(params: AssembledChannelTurnWithoutBotLoopProtection): Promise; export declare function dispatchAssembledChannelTurn(params: AssembledChannelTurn): Promise; type PreparedChannelTurnWithBotLoopProtection = PreparedChannelTurn & { botLoopProtection: NonNullable["botLoopProtection"]>; }; type PreparedChannelTurnWithoutBotLoopProtection = Omit, "botLoopProtection"> & { botLoopProtection?: undefined; }; export declare function runPreparedChannelTurn(params: PreparedChannelTurnWithBotLoopProtection): Promise>; export declare function runPreparedChannelTurn(params: PreparedChannelTurnWithoutBotLoopProtection): Promise>; export declare function runPreparedChannelTurn(params: PreparedChannelTurn): Promise>; export declare function runChannelTurn(params: RunChannelTurnParams): Promise>; export declare function runResolvedChannelTurn(params: RunResolvedChannelTurnParams): Promise>;