import{getFormat as e,storeFormat as t,stripBOM as n}from"./_chunks/_format.mjs";import{YAMLException as r,dump as i,load as a}from"./_chunks/libs/js-yaml.mjs";function o(e,r){let i=a(n(e),r);return t(e,i,r),i}function s(t,n){let r=e(t,{preserveIndentation:!1}),a=typeof r.indent==`string`?r.indent.length:r.indent,o=i(t,{indent:a,...n});return r.whitespace.start+o.trim()+r.whitespace.end}export{r as YAMLException,o as parseYAML,s as stringifyYAML};