import { init_esm_shims } from './chunk-DMUWBIYY.js';
import { consola } from 'consola';

// src/consola/handlePromptCancel.ts
init_esm_shims();
function handlePromptCancel(promptResponse) {
  const isFalse = typeof promptResponse === "boolean" && !promptResponse;
  const isSigInt = typeof promptResponse === "symbol" && promptResponse.toString() === "Symbol(clack:cancel)";
  if (isSigInt || isFalse) {
    consola.fail("Operation cancelled");
    process.exit(0);
  }
}

export { handlePromptCancel };
//# sourceMappingURL=chunk-HCWMXOMI.js.map
//# sourceMappingURL=chunk-HCWMXOMI.js.map