import prompts from '../../../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.mjs';
import { AbortError } from '../../../events/build/esnext/abort/AbortError.esnext.mjs';

async function prompt(prompt2) {
  const result = await prompts(
    { name: "value", ...prompt2 },
    {
      onCancel() {
        throw new AbortError();
      }
    }
  );
  return result.value;
}

export { prompt };
