import type { ExportData, DiffResult, MetaChanges } from "./types.js"; /** Compare two exports and classify changes. * Optional labels override the derived dates (useful when the storage key * differs from the latest dateOfService, e.g. round key = earliest date). */ export declare function diffExports(from: ExportData, to: ExportData, fromLabel?: string, toLabel?: string): DiffResult; /** Compare non-result metadata between two exports. Only populates fields that changed. */ export declare function diffMeta(from: ExportData | null, to: ExportData): MetaChanges; /** Build human-readable summary lines from diff results and meta changes. * Returns empty array if nothing changed (no file should be written). */ export declare function buildChangeSummary(diff: DiffResult | null, meta: MetaChanges, context?: { totalResults: number; roundCount: number; previousRoundCount?: number; }): string[]; /** Detect changes between previous aggregate and fresh API data, save notification if any. * Returns the summary lines (empty if nothing changed). * Note: "disappeared" markers are suppressed because the API's /results-report returns * only current results — comparing against the aggregate of all historical rounds would * produce false disappearances for markers not in the latest panel. Use fh_changes for * accurate round-to-round disappearance tracking. */ export declare function detectAndSaveChanges(previousData: ExportData | null, currentData: ExportData, savedDates: string[], previousRoundCount?: number): Promise;