"use strict";
// SPDX-License-Identifier: AGPL-3.0-or-later
// Copyright (C) 2024-2026 Gracker (Chris)
// This file is part of SmartPerfetto. See LICENSE for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSharedModelRouter = getSharedModelRouter;
exports.resetSharedModelRouterForTests = resetSharedModelRouterForTests;
const modelRouter_1 = require("./modelRouter");
let modelRouterInstance = null;
function getSharedModelRouter() {
    if (!modelRouterInstance) {
        modelRouterInstance = new modelRouter_1.ModelRouter();
    }
    return modelRouterInstance;
}
function resetSharedModelRouterForTests() {
    modelRouterInstance?.removeAllListeners();
    modelRouterInstance = null;
}
//# sourceMappingURL=modelRouterSingleton.js.map