export type AuditAction = 'append' | 'erase' | 'query' | 'sync.pull' | 'sync.push'; export interface AuditEvent { ts: string; action: AuditAction; entry_id?: string; device_id: string; detail?: Record; } export declare class AuditTrail { private filePath; constructor(filePath: string); log(event: AuditEvent): Promise; readAll(): Promise; getFilePath(): string; }