import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
import {
  STDIN_TIMEOUT_MS
} from "./chunk-WBLTISAK.js";

// src/hooks/read-stdin.ts
function readStdin() {
  return new Promise((resolve) => {
    let data = "";
    process.stdin.on("data", (chunk) => {
      data += chunk;
    });
    process.stdin.on("end", () => resolve(data));
    setTimeout(() => resolve(data || "{}"), STDIN_TIMEOUT_MS);
  });
}

export {
  readStdin
};
//# sourceMappingURL=chunk-CQ4RKK67.js.map