import type { BotConfig } from "../config/config.js"; import type { DispatchFromConfigResult } from "./reply/dispatch-from-config.js"; import type { FinalizedMsgContext, MsgContext } from "./templating.js"; import type { GetReplyOptions } from "./types.js"; import { type ReplyDispatcher, type ReplyDispatcherOptions, type ReplyDispatcherWithTypingOptions } from "./reply/reply-dispatcher.js"; export type DispatchInboundResult = DispatchFromConfigResult; export declare function withReplyDispatcher(params: { dispatcher: ReplyDispatcher; run: () => Promise; onSettled?: () => void | Promise; }): Promise; export declare function dispatchInboundMessage(params: { ctx: MsgContext | FinalizedMsgContext; cfg: BotConfig; dispatcher: ReplyDispatcher; replyOptions?: Omit; replyResolver?: typeof import("./reply.js").getReplyFromConfig; }): Promise; export declare function dispatchInboundMessageWithBufferedDispatcher(params: { ctx: MsgContext | FinalizedMsgContext; cfg: BotConfig; dispatcherOptions: ReplyDispatcherWithTypingOptions; replyOptions?: Omit; replyResolver?: typeof import("./reply.js").getReplyFromConfig; }): Promise; export declare function dispatchInboundMessageWithDispatcher(params: { ctx: MsgContext | FinalizedMsgContext; cfg: BotConfig; dispatcherOptions: ReplyDispatcherOptions; replyOptions?: Omit; replyResolver?: typeof import("./reply.js").getReplyFromConfig; }): Promise;