export interface PersistentQueueOptions { baseDir?: string; } export default class PersistentQueue { private baseDir; constructor(opts?: PersistentQueueOptions); private ensureDir; private filenameForDate; /** Append a single JSON record as a newline in today's file */ push(record: any): Promise; /** List fallback files (by path) sorted oldest -> newest */ listFiles(): Promise; /** Read file and parse lines into objects */ readFileLines(filePath: string): Promise; /** Remove a file (after successful replay) */ removeFile(filePath: string): Promise; }