/**
 * 多平台登录服务模块
 * @module services/login
 * 
 * 支持的平台：
 * - 抖音 (douyin) - 账号ID前缀: dy_
 * - 小红书 (xiaohongshu) - 账号ID前缀: xhs_
 * - 微信视频号 (weixin_video) - 账号ID前缀: sph_
 * - 百家号 (baijiahao) - 账号ID前缀: bjh_
 * 
 * @example
 * ```typescript
 * import { loginServiceManager } from './services/login';
 * 
 * // 启动登录
 * const { sessionId } = await loginServiceManager.startLoginSession('douyin', userId);
 * 
 * // 监听结果
 * loginServiceManager.on('loginResult', (event) => {
 *   if (event.status === 'success') {
 *     console.log('登录成功:', event.accountInfo);
 *   }
 * });
 * ```
 */

// 类型导出
export type {
  PlatformLoginConfig,
  LoginSessionStatus,
  LoginSession,
  AccountInfo,
  LoginResultEvent,
  AIAnalysisEvent,
  VerificationNeededEvent,
  LoginServiceEvents,
} from './types.js';

// 基类导出
export { BaseLoginService, type ApiInterceptConfig } from './BaseLoginService.js';

// 各平台服务导出
export { DouyinLoginService, douyinLoginService } from './DouyinLoginService.js';
export { XiaohongshuLoginService, xiaohongshuLoginService } from './XiaohongshuLoginService.js';
export { WeixinVideoLoginService, weixinVideoLoginService } from './WeixinVideoLoginService.js';
export { BaijiahaoLoginService, baijiahaoLoginService } from './BaijiahaoLoginService.js';

// 管理器导出
export { LoginServiceManager, loginServiceManager, type SupportedLoginPlatform } from './LoginServiceManager.js';
