/** Maximum size of the active plugin log before its single backup rotates in. */ export declare const DEFAULT_LOG_BYTES: number; /** Retention hygiene keeps one backup generation and no numbered chain. */ export declare const DEFAULT_LOG_GENERATIONS = 1; import { resolveAftLogPath, resolveAftStorageRoot } from "./storage-paths.js"; export { resolveAftLogPath, resolveAftStorageRoot }; export interface RotatingLogOptions { maxBytes?: number; generations?: number; } /** * Asynchronous append-only sink with bounded size rotation. * * Callers only enqueue strings; directory creation, stat, append, and rename * operations run on a serialized promise chain outside the logging hot path. */ export declare class RotatingLogSink { readonly path: string; private readonly maxBytes; private readonly generations; private estimatedBytes; private queue; private disabled; private failureReported; constructor(path: string, options?: RotatingLogOptions); append(data: string): void; /** Wait for queued writes. Intended for shutdown hooks and tests. */ drain(): Promise; private write; private rotate; } //# sourceMappingURL=durable-log.d.ts.map