export declare class Stats {
    dom: HTMLDivElement;
    private mode;
    private beginTime;
    private prevTime;
    private frames;
    private readonly fpsPanel;
    private readonly msPanel;
    private readonly memPanel?;
    constructor();
    addPanel(panel: any): any;
    /**
     * 0: fps, 1: ms, 2: mb, 3+: custom
     * @param id number referenced above
     */
    showPanel(id: number): void;
    begin(): void;
    end(): number;
    update(): void;
}
