/** * 平台动态加载器 * * 根据 isPlatformConfigured() 判断,只加载已配置的平台适配器。 * 避免 SDK 全量加载导致内存浪费。 */ import type { PlatformAdapter, PlatformSender } from './types.js'; export declare const ALL_PLATFORMS: string[]; /** * 获取已配置的平台列表 */ export declare function getConfiguredPlatforms(): string[]; /** * 动态加载平台适配器 * * @param platform - 平台标识 * @returns 平台适配器,如果未配置或加载失败返回 null */ export declare function loadAdapter(platform: string): Promise; /** * 批量加载所有已配置的平台适配器 * * @returns 已加载的适配器列表 */ export declare function loadAllConfigured(): Promise; /** * 获取已缓存的适配器 */ export declare function getCachedAdapter(platform: string): PlatformAdapter | null; /** * 根据平台获取 Sender(用于消息路由) */ export declare function getSenderByPlatform(platform: string): PlatformSender | null; /** * 清除适配器缓存 */ export declare function clearCache(): void; //# sourceMappingURL=loader.d.ts.map