var i=async(t,r)=>{switch(t){case"json":case"json5":return JSON.stringify(r,null,2);case"yaml":{let{stringify:n}=await import("yaml");return n(r)}case"toml":{let{stringify:n}=await import("smol-toml");return n(r)}case"xml":{let{XMLBuilder:n}=await import("fast-xml-parser");return new n({}).build(r)}default:throw new Error(`Unknown format: ${t}`)}};export{i as a};
