// THIS FILE WAS AUTO-GENERATED
// Source: lib/templates/backends/typescriptGenerator/builtinFunctions/input.mustache
// Any manual changes will be lost.
import { apply } from "typestache";
export const template = `function _builtinInput(prompt: string): Promise<string> {
  const rl = readline.createInterface({
    input: __process.stdin,
    output: __process.stdout
  });

  return new Promise((resolve) => {
    rl.question(prompt, (answer) => {
      rl.close();
      resolve(answer);
    });
  });
}`;
const render = (args) => {
    return apply(template, args);
};
export default render;
