interface Record { data: string; newFile: boolean; originalPath?: string; edited?: boolean; } export interface IChangeHistory { getRecords(path: string): { [path: string]: Record; }; getRecord(glob?: string): Record; writeRecord(path: string, record: Record): void; deleteRecord(path: string): void; clearHistory(): void; } export default class ChangeHistory implements IChangeHistory { private records; constructor(records?: { [path: string]: Record; }); getRecord(path: string): Record; getRecords(glob?: string): { [path: string]: Record; }; writeRecord(path: string, record: Record): void; deleteRecord(path: string): void; clearHistory(): void; } export {};