"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDefaultString = getDefaultString;
const getRandomString_1 = require("./getRandomString");
/**
 * Resolves a DefaultString spec into a concrete string value.
 * If the spec is a plain string, returns it directly.
 * If it is a random-string specification, generates a random string accordingly.
 *
 * @param defaultSpec - A string literal or a random-string generation spec
 * @returns The resolved default string value
 */
function getDefaultString(defaultSpec) {
    if (typeof defaultSpec === 'string') {
        return defaultSpec;
    }
    else {
        return (0, getRandomString_1.getRandomString)(defaultSpec);
    }
}
//# sourceMappingURL=getDefaultString.js.map