// #region Imports
// #endregion
/**
 * @public
 */
export class RouterServiceLocator {
    // #region Fields
    static _current = null;
    // #endregion
    // #region Properties
    static get current() {
        if (!RouterServiceLocator.isSet()) {
            throw new Error('\'RouterElement\' not set.');
        }
        // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
        return RouterServiceLocator._current;
    }
    // #endregion
    // #region Methods
    static isSet() {
        return RouterServiceLocator._current !== null;
    }
    static set(current) {
        RouterServiceLocator._current = current;
    }
}
//# sourceMappingURL=Router.js.map