/** * JinaReader - 基于 JINA Reader API 的文档解析器 * * 使用 JINA Reader API (https://r.jina.ai/) 将各种格式的文档转换为 Markdown * 支持:PDF, Office 文档, HTML, 图片等 * * @see https://jina.ai/reader/ */ import type { DocumentReader, ReadDocument, ReadOptions } from './DocumentReader'; export interface JinaReaderOptions { /** JINA API Key */ apiKey: string; /** 自定义 API 端点(默认 https://r.jina.ai) */ baseUrl?: string; /** 默认超时时间(毫秒) */ defaultTimeout?: number; } /** * JINA Reader API 文档解析器 */ export declare class JinaReader implements DocumentReader { protected readonly logger: import("global-logger-factory").Logger; private readonly apiKey; private readonly baseUrl; private readonly defaultTimeout; constructor(options: JinaReaderOptions); /** * 读取文档为 Markdown */ read(url: string, options?: ReadOptions): Promise; /** * 检查是否支持该 URL * JINA Reader 支持大多数 URL */ supports(url: string): boolean; /** * 从 Markdown 内容中提取元数据 */ private extractMetadata; }