import{parsePathVersions as t}from"../../../../utils/path/parse-path-versions.js";function i(e){return/^\d+(\.\d+)*$/.test(e)}function f(e,o){const s=t(o)?.versionName??null,r=e!=null,n=s!==null;return n?i(s)?r&&n&&e!==s?{success:!1,reason:"version-conflict",fileVersion:e,folderVersion:s}:{success:!0,version:r?e:s}:{success:!0,version:r?e:s}:{success:!0,version:r?e:null}}export{f as resolveEntityVersion};
