/** Rotate above this size. Two generations at 32 MB bounds the log at ~64 MB. */ export declare const LOG_MAX_BYTES: number; export interface RotateResult { rotated: boolean; /** Size at rotation, in bytes. 0 when nothing was rotated. */ sizeBefore: number; } /** * Rotate `logPath` if it exceeds `maxBytes`. * * Best-effort in both directions: a missing log, an unreadable one, or a * read-only directory all mean "not rotated", never an error. A daemon must not * fail to start because it could not tidy its own log. */ export declare function rotateLogIfLarge(logPath: string, maxBytes?: number): RotateResult; //# sourceMappingURL=log-rotate.d.ts.map