import { CID } from "multiformats/cid"; export interface SnapshotRecord { cid: string; ts: number; } export interface HistoryEntry { tip: SnapshotRecord | null; snapshots: SnapshotRecord[]; } export interface RetentionConfig { fullResolutionMs: number; hourlyRetentionMs: number; dailyRetentionMs: number; } export interface HistoryTracker { add(ipnsName: string, cid: CID, ts: number): void; prune(now?: number): CID[]; thinSnapshots(ipnsName: string, config: RetentionConfig, now?: number): CID[]; getTip(ipnsName: string): string | null; getHistory(ipnsName: string): SnapshotRecord[]; getEntry(ipnsName: string): HistoryEntry | undefined; allNames(): string[]; toJSON(): Record; loadJSON(data: Record): void; } export declare function createHistoryTracker(retentionMs?: number): HistoryTracker; //# sourceMappingURL=history.d.ts.map