/** * OAuth 服务层 * * 提供 OAuth 相关的业务操作,包括 Token 管理、黑名单检查等。 * 使用工厂模式自动区分 Mock 和 Production 环境: * new OAuthService() 会自动根据 isMockMode() 返回正确的实例实现 */ import { OAuthProductionService } from './oauth/OAuthProductionService'; import { OAuthMockService } from './oauth/OAuthMockService'; export { OAuthServiceError } from './oauth/OAuthServiceError'; type OAuthServiceType = OAuthProductionService | OAuthMockService; /** * OAuth 服务工厂函数 * 支持 both function call 和 new 调用: * - OAuthService() or new OAuthService() 都返回正确的实例 * - 根据 isMockMode() 返回 OAuthMockService 或 OAuthProductionService */ interface OAuthServiceConstructor { (): OAuthServiceType; new (): OAuthServiceType; } declare const OAuthService: OAuthServiceConstructor; export default OAuthService; //# sourceMappingURL=OAuthService.d.ts.map