import { Filename, BackupRecord, Commit, GpgKey } from './Types'; import { Transform } from 'streamdash'; export interface Dependencies { getDate: () => Date; commitIdGenerator: (d: Date) => string; } export default class DeletedFilenameToComitted extends Transform { private clientId; private gpgKey; private fileByteCountThreshold; private filenames; private getDate; private commitIdGenerator; constructor({getDate, commitIdGenerator}: Dependencies, clientId: string, gpgKey: GpgKey, fileByteCountThreshold: number, opts: any); static getDependencies(): { getDate: () => Date; commitIdGenerator: (d: Date) => string; }; _transform(input: Filename, encoding: any, cb: any): void; mapper(d: Date, f: Filename): BackupRecord; _flush(cb: any): any; }