/** * 通道注册表:按 channelId 注册与获取通道,供入站回调分发。 */ import type { IChannel, UnifiedMessage } from "./types.js"; export declare function registerChannel(channel: IChannel): void; export declare function unregisterChannel(channelId: string): void; export declare function getChannel(channelId: string): IChannel | undefined; export declare function listChannels(): IChannel[]; /** * 入站收到统一消息时调用:按 channelId 找到通道并交给核心处理。 */ export declare function dispatchMessage(msg: UnifiedMessage): Promise; /** 启动所有已注册通道的入站传输 */ export declare function startAllChannels(): Promise; /** 停止所有已注册通道的入站传输 */ export declare function stopAllChannels(): Promise;