import type { MsgContext } from "../../../auto-reply/templating.js"; import type { loadConfig } from "../../../config/config.js"; export declare function trackBackgroundTask(backgroundTasks: Set>, task: Promise): void; export declare function updateLastRouteInBackground(params: { cfg: ReturnType; backgroundTasks: Set>; storeAgentId: string; sessionKey: string; channel: "whatsapp"; to: string; accountId?: string; ctx?: MsgContext; warn: (obj: unknown, msg: string) => void; }): void; export declare function awaitBackgroundTasks(backgroundTasks: Set>): Promise;