export type LogBufferOptions = { byteLimit?: number; }; export type WriteBufferedLogsOptions = { dir: string; filenamePrefix: string; maxFiles?: number; }; /** * In-memory ring buffer of log entries with a byte cap. Designed to be * composed into a logger so that recent log output can be flushed to a file * after a failure. Each record is timestamped and tagged with the level the * caller provides. */ export declare class LogBuffer { private entries; private bytes; private byteLimit; constructor(options?: LogBufferOptions); private static entrySize; private trimToByteLimit; record(level: string, args: unknown[]): void; view(): string; flush(): string; writeToFile(options: WriteBufferedLogsOptions): string | null; }