export declare const DEFAULT_DAEMON_LOG_MAX_BYTES: number; export declare const DEFAULT_DAEMON_LOG_KEEP_BYTES: number; export interface DaemonLogRotationResult { rotated: boolean; previousBytes: number; keptBytes: number; } /** * Trim an oversized daemon log from a bounded tail read. * * The previous implementation used readFile(), so a multi-gigabyte log was * copied wholesale into the daemon heap precisely when rotation was supposed * to protect the node. This reads at most keepBytes and drops the first * partial line before replacing the file. */ export declare function rotateDaemonLogIfNeeded(logFile: string, options?: { maxBytes?: number; keepBytes?: number; }): Promise; //# sourceMappingURL=log-rotation.d.ts.map