/** * Semantic Scholar API集成模块 * 支持免费API和付费API密钥 */ import { Paper } from '../models/Paper.js'; import { PaperSource, SearchOptions, DownloadOptions, PlatformCapabilities } from './PaperSource.js'; interface SemanticSearchOptions extends SearchOptions { /** 发表年份范围 */ year?: string; /** 研究领域过滤 */ fieldsOfStudy?: string[]; } export declare class SemanticScholarSearcher extends PaperSource { private readonly rateLimiter; private readonly baseApiUrl; constructor(apiKey?: string); getCapabilities(): PlatformCapabilities; /** * 搜索Semantic Scholar论文 */ search(query: string, options?: SemanticSearchOptions): Promise; /** * 获取论文详细信息 */ getPaperDetails(paperId: string): Promise; /** * 下载PDF文件 */ downloadPdf(paperId: string, options?: DownloadOptions): Promise; /** * 读取论文全文内容 */ readPaper(paperId: string, options?: DownloadOptions): Promise; /** * 根据DOI获取论文信息 */ getPaperByDoi(doi: string): Promise; /** * 解析搜索响应 */ private parseSearchResponse; /** * 解析单个Semantic Scholar论文 */ private parseSemanticPaper; /** * 获取速率限制器状态 */ getRateLimiterStatus(): { availableTokens: number; maxTokens: number; requestsPerSecond: number; pendingRequests: number; }; /** * 验证API密钥(如果提供) */ validateApiKey(): Promise; } export {}; //# sourceMappingURL=SemanticScholarSearcher.d.ts.map