import { r as KlawConfig } from "./types.klaw-xKUw_Rz7.js"; import { a as SourceReplyDeliveryMode, n as GetReplyOptions, s as ReplyPayload } from "./get-reply-options.types-CS-CA1Iq.js"; import { n as MsgContext, t as FinalizedMsgContext } from "./templating-B8JLQEN3.js"; import { n as ReplyDispatcher, t as ReplyDispatchKind } from "./reply-dispatcher.types-DrTstzbu.js"; //#region src/auto-reply/reply/abort.runtime-types.d.ts type FastAbortResult = { handled: boolean; aborted: boolean; stoppedSubagents?: number; }; type TryFastAbortFromMessage = (params: { ctx: FinalizedMsgContext; cfg: KlawConfig; }) => Promise; type FormatAbortReplyText = (stoppedSubagents?: number) => string; //#endregion //#region src/auto-reply/reply/get-reply.types.d.ts type GetReplyFromConfig = (ctx: MsgContext, opts?: GetReplyOptions, configOverride?: KlawConfig) => Promise; //#endregion //#region src/auto-reply/reply/dispatch-from-config.types.d.ts type DispatchFromConfigResult = { queuedFinal: boolean; counts: Record; failedCounts?: Partial>; sourceReplyDeliveryMode?: SourceReplyDeliveryMode; beforeAgentRunBlocked?: boolean; }; type DispatchFromConfigParams = { ctx: FinalizedMsgContext; cfg: KlawConfig; dispatcher: ReplyDispatcher; replyOptions?: Omit; replyResolver?: GetReplyFromConfig; fastAbortResolver?: TryFastAbortFromMessage; formatAbortReplyTextResolver?: FormatAbortReplyText; /** Optional patch applied to the already loaded config before reply resolution. */ configOverride?: KlawConfig; }; type DispatchReplyFromConfig = (params: DispatchFromConfigParams) => Promise; //#endregion export { DispatchReplyFromConfig as n, GetReplyFromConfig as r, DispatchFromConfigResult as t };