// @bun
import a from"fs";import*as r from"tty";var s="--interactive requires a controlling terminal for input";function c(t){return new r.ReadStream(a.openSync(t,"r"))}function p(t=process.stdin,n=c,o=process.platform){if(t.isTTY)return{stdin:t};let i=o==="win32"?"CONIN$":"/dev/tty";try{let e=n(i);return{stdin:e,cleanup:()=>{e.destroy()}}}catch(e){throw Error(s,{cause:e})}}
export{s as tj,p as uj};
