"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NS_SEPARATOR = void 0;
exports.getPath = getPath;
exports.createNS = createNS;
exports.createNestedNS = createNestedNS;
exports.NS_SEPARATOR = '::';
function getPath(name, parentNS) {
    return `${parentNS.value}${exports.NS_SEPARATOR}${name}`;
}
/**
 * Create a namespace for settings, valid charachters [a-zA-Z-]
 */
function createNS(name) {
    return {
        value: name,
        name,
        parent: undefined,
    };
}
function createNestedNS(name, parent) {
    return {
        value: getPath(name, parent),
        name,
        parent,
    };
}
