/** * Bounded in-memory ring buffer for desktop companion log entries. * * Keeps the most recent `maxEntries` lines and supports filtered queries by * level, since-timestamp and limit. Once the buffer is full the oldest entry * is dropped on every push (FIFO eviction), so the memory footprint of a * long-running session stays bounded. */ import type { LogEntry, LogOptions, LogType } from "./types.js"; export declare class LogRing { private readonly maxEntries; private entries; constructor(maxEntries?: number); /** Append a new log line. Evicts the oldest entry once the buffer is full. */ push(type: LogType, message: string): void; /** Return a copy of the buffer, optionally filtered by type/since/limit. */ query(options?: LogOptions): LogEntry[]; /** Drop every buffered entry. */ clear(): void; } //# sourceMappingURL=log-ring.d.ts.map