export class DebugOverlay {
    sections = new Map();
    setSection(title, rows) {
        const trimmed = title.trim();
        if (trimmed.length === 0) {
            throw new Error("Debug overlay section title is required");
        }
        this.sections.set(trimmed, rows.map((row) => ({ ...row })));
    }
    removeSection(title) {
        this.sections.delete(title);
    }
    snapshot() {
        return {
            sections: [...this.sections.entries()].map(([title, rows]) => ({ title, rows: [...rows] }))
        };
    }
}
//# sourceMappingURL=DebugOverlay.js.map