import { type LogEvent } from './contracts.js'; interface LogsFileOptions { filePath: string; runId: string; maxBytes?: number; maxLines?: number; generations?: number; flushIntervalMs?: number; maxQueue?: number; } export declare function readLogFileRunId(filePath: string): string | undefined; export declare function isLogFileOwnedByAnotherRun(filePath: string, runId: string): boolean; export declare function replaceLogFile(filePath: string, content: string): void; export declare class LogsFileWriter { private readonly opts; private queue; private bytes; private lines; private droppedToDisk; private timer; private started; constructor(options: LogsFileOptions); start(): void; write(event: LogEvent): void; private enqueue; flush(): void; close(): void; private maybeNoteDrops; private writeHeader; private rotatedName; private rotate; } export {};