/** * Exporter - export snapshot history and diff reports to CSV or XLSX. * * CSV is built natively (no extra dependency). * XLSX requires exceljs (optional peer dependency). * Install: npm install exceljs */ import type { IStore } from "../models.js"; export type ExportFormat = "csv" | "xlsx" | "json"; export type ExportType = "reports" | "snapshots"; export declare class Exporter { private readonly store; constructor(store: IStore); /** * Export diff reports to CSV string. * One row per change entry (url, label, comparedAt, kind, before, after). */ reportsToCsv(url: string, target?: string, limit?: number): string; /** * Export snapshot history to CSV string. * One row per snapshot (url, target, capturedAt, checksum, contentPreview). */ snapshotsToCsv(url: string, target?: string, limit?: number): string; /** * Export diff reports to a formatted JSON string. */ exportReportsJson(url: string, target?: string, limit?: number): string; /** * Export snapshot history to a formatted JSON string. */ exportSnapshotsJson(url: string, target?: string, limit?: number): string; /** * Export diff reports to an XLSX Buffer. * Requires: npm install exceljs */ reportsToXlsx(url: string, target?: string, limit?: number): Promise; /** * Export snapshot history to an XLSX Buffer. * Requires: npm install exceljs */ snapshotsToXlsx(url: string, target?: string, limit?: number): Promise; } //# sourceMappingURL=index.d.ts.map