const MAX = 30;
/** Ring buffer of recent DOM extract debug snapshots. */
export class MessageDebugStore {
    ring = [];
    push(snapshot) {
        this.ring.push(snapshot);
        if (this.ring.length > MAX)
            this.ring.shift();
    }
    latest() {
        return this.ring[this.ring.length - 1];
    }
    list() {
        return [...this.ring];
    }
}
