/** * BulkExporter — 知识库批量导出 * * FR-X03: * - AC1: 按知识域、类型、状态、时间范围筛选导出,格式为 JSON * - AC2: 包含完整数据(元数据、内容、关联关系、版本历史)和冲突记录 * - AC3: 导出文件包含格式版本号 */ import type { KnowledgeEntry } from '../types/index.js'; import type { ConflictRecord } from '../conflict/index.js'; import type { ExportFilter, ExportPackage } from './bulk-export-types.js'; export interface BulkExportDataSource { /** 获取所有知识条目 */ getAllEntries(): Promise; /** 获取所有冲突记录 */ getAllConflicts(): Promise; } export declare class BulkExporter { private readonly dataSource; constructor(dataSource: BulkExportDataSource); /** * 执行批量导出 * AC1: 按筛选条件过滤 * AC2: 包含完整数据 * AC3: 包含格式版本号 */ export(filter?: ExportFilter): Promise; /** 导出为 JSON 字符串 */ exportToJson(filter?: ExportFilter, pretty?: boolean): Promise; private filterEntries; private filterConflicts; } //# sourceMappingURL=bulk-exporter.d.ts.map