"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateSpecRegistryDestination = validateSpecRegistryDestination;
exports.parseSpecRegistryDestination = parseSpecRegistryDestination;
exports.assertSpecRegistryDestination = assertSpecRegistryDestination;
const paths_1 = require("../paths");
function validateSpecRegistryDestination(input, options = {}) {
    return (0, paths_1.validateWriteDestination)(input, options);
}
function parseSpecRegistryDestination(input, options = {}) {
    const result = (0, paths_1.assertWriteDestination)(input, options);
    return {
        destination: result.repositoryRelativePath.normalizedPath,
        repositoryRelativePath: result.repositoryRelativePath
    };
}
function assertSpecRegistryDestination(input, options = {}) {
    return parseSpecRegistryDestination(input, options);
}
