import { i as OpenClawConfig } from "./types.openclaw-CXjMEWAQ.js"; import { u as ReplyPayload } from "./types-C5Sz_b28.js"; import { i as MsgContext, t as FinalizedMsgContext } from "./templating--GHupcKJ.js"; import { yn as ReplyDispatcher } from "./hook-types-DQ9eTy2x.js"; import { Gi as ReplyDispatcherOptions, Ki as ReplyDispatcherWithTypingOptions, Qi as CommandSessionMetadataChange, Xi as InternalGetReplyFromConfig, Yi as DispatchFromConfigResult, Zi as InternalGetReplyOptions } from "./types-DaHgOqFX.js"; //#region src/auto-reply/dispatch.d.ts type InternalDispatchReplyOptions = Omit; type ReplyPayloadRunState = { runId?: string; }; type DispatchInboundResult = DispatchFromConfigResult; /** Dispatches one finalized inbound message through reply resolution and queued delivery. */ declare function dispatchInboundMessage(params: { ctx: MsgContext | FinalizedMsgContext; cfg: OpenClawConfig; dispatcher: ReplyDispatcher; toolsAllow?: string[]; replyOptions?: InternalDispatchReplyOptions; replyResolver?: InternalGetReplyFromConfig; onSessionMetadataChanges?: (changes: CommandSessionMetadataChange[]) => void; replyPayloadRunState?: ReplyPayloadRunState; }): Promise; /** Creates a buffered dispatcher with typing, hooks, and stale foreground delivery suppression. */ declare function dispatchInboundMessageWithBufferedDispatcher(params: { ctx: MsgContext | FinalizedMsgContext; cfg: OpenClawConfig; dispatcherOptions: ReplyDispatcherWithTypingOptions; toolsAllow?: string[]; replyOptions?: InternalDispatchReplyOptions; replyResolver?: InternalGetReplyFromConfig; onSessionMetadataChanges?: (changes: CommandSessionMetadataChange[]) => void; }): Promise; /** Creates a plain dispatcher, installs global send hooks, and dispatches the inbound message. */ declare function dispatchInboundMessageWithDispatcher(params: { ctx: MsgContext | FinalizedMsgContext; cfg: OpenClawConfig; dispatcherOptions: ReplyDispatcherOptions; toolsAllow?: string[]; replyOptions?: InternalDispatchReplyOptions; replyResolver?: InternalGetReplyFromConfig; }): Promise; //#endregion //#region src/auto-reply/heartbeat-reply-payload.d.ts /** * Pick the last outbound-capable reply payload for heartbeat delivery. * * Reasoning payloads are skipped using the shared SDK classifier * `isReasoningReplyPayload`, which recognizes the `isReasoning` flag plus the * common reasoning/thinking text prefixes (including lowercased and Markdown * blockquoted forms). Heartbeat reasoning is delivered separately and only when * `includeReasoning` is enabled; without this guard a trailing reasoning * payload (which reasoning models can emit after the final answer) would be * selected as the user-visible heartbeat reply. */ declare function resolveHeartbeatReplyPayload(replyResult: ReplyPayload | ReplyPayload[] | undefined): ReplyPayload | undefined; //#endregion export { dispatchInboundMessageWithDispatcher as i, dispatchInboundMessage as n, dispatchInboundMessageWithBufferedDispatcher as r, resolveHeartbeatReplyPayload as t };