import type { HarnessEvent } from '../types.js'; export declare class NdjsonWriter { private filePath; private channel; private nextId; private maxFileSize; private maxFiles; constructor(filePath: string, channel: string, maxFileSizeMb?: number, maxFiles?: number); write(payload: unknown): HarnessEvent; /** Rotate current file and clean up old rotated files */ private rotate; resetId(): void; getLastId(): number; } export declare class BufferedNdjsonWriter extends NdjsonWriter { private flushIntervalMs; private buffer; private timer; constructor(filePath: string, channel: string, maxFileSizeMb?: number, flushIntervalMs?: number); writeBuffered(payload: unknown): HarnessEvent; flush(): void; destroy(): void; } //# sourceMappingURL=base.d.ts.map