import type { AdminActivityEvent } from './types.js'; /** Default maximum number of events retained in the ring buffer. */ export declare const DEFAULT_ACTIVITY_LOG_CAPACITY = 10000; /** * In-memory ring buffer that captures recent DWN request activity. * * Events are assigned a monotonically increasing `id` that acts as a cursor. * When the buffer reaches capacity, the oldest events are evicted. This is * **not** a persistent audit log — it is designed for real-time admin * observability. */ export declare class ActivityLog { #private; constructor(capacity?: number); /** * Records a new activity event. If the buffer is full, the oldest event is * evicted. */ record(event: Omit): void; /** * Returns recent events, optionally filtered by a cursor (returns events * with `id > since`) and limited to `limit` entries. */ getEvents(options?: { since?: number; limit?: number; }): { events: AdminActivityEvent[]; cursor?: number; }; /** * Returns the current number of events in the buffer. */ get size(): number; /** * Returns the configured capacity of the ring buffer. */ get capacity(): number; /** * Clears all events from the buffer. */ clear(): void; } //# sourceMappingURL=activity-log.d.ts.map