/** * Append-only sink that mirrors the daemon's console output to a file the * `mnemonik-scanner log` command can tail. Rotates to `.old` once the * file would pass `maxSize`, so a daemon that runs for weeks can't grow it * without bound. Every operation is best-effort: a logging failure must never * crash the daemon, so all filesystem errors are swallowed. */ export declare function createRotatingFileSink(logFile: string, maxSize: number): (chunk: string) => void; /** * Tee `process.stdout`/`process.stderr` into `logFile` on top of their normal * destination. This is what makes `mnemonik-scanner log` reflect live activity * regardless of how the daemon is supervised: under systemd stdout is wired to * the journal (a socket), under a bare shell to the terminal — either way the * file now receives the same lines. Call once at daemon start, before the * daemon writes anything worth capturing. */ export declare function installFileLogging(logFile: string, maxSize: number): void;