import { BaseViewer, Plugin } from "@x-viewer/core"; import Stats from "stats.js"; /** * Stats plugin is a debug tool for developers to observe the performance of a page. */ export declare class StatsPlugin extends Plugin { static readonly DEFAULT_ID = "StatsPlugin"; protected stats?: Stats; /** Mirrors {@link setVisible}: stats.js uses `showPanel(-1)` to hide all panels. */ private statsUiVisible; constructor(viewer: BaseViewer); /** * Shows or hide the stats panel, which indicates current FPS, MS, MB, etc. */ setVisible(visible: boolean): void; isVisible(): boolean; destroy(): void; }