import type { ChannelId } from "../../channels/plugins/types.public.js"; import type { OpenClawConfig } from "../../config/types.openclaw.js"; import type { RoutePeer } from "../../routing/resolve-route.js"; import type { ResolvedMessagingTarget } from "./target-resolver.js"; export type OutboundSessionRoute = { sessionKey: string; baseSessionKey: string; peer: RoutePeer; chatType: "direct" | "group" | "channel"; from: string; to: string; threadId?: string | number; }; export type ResolveOutboundSessionRouteParams = { cfg: OpenClawConfig; channel: ChannelId; agentId: string; accountId?: string | null; target: string; currentSessionKey?: string; resolvedTarget?: ResolvedMessagingTarget; replyToId?: string | null; threadId?: string | number | null; }; export declare function resolveOutboundSessionRoute(params: ResolveOutboundSessionRouteParams): Promise; export declare function ensureOutboundSessionEntry(params: { cfg: OpenClawConfig; channel: ChannelId; accountId?: string | null; route: OutboundSessionRoute; }): Promise;