// Export showMessageBox and types for use as a library
export { showMessageBox, MessageBoxOptions, MessageBoxResult } from "./shower.js";

// If run directly (e.g., `node .` or `node index.js`), run the CLI
// @ts-ignore - import.meta.main is available in Node.js 20+
if (import.meta.main) {
    // Import and run the CLI handler
    const { default: main } = await import('./cli.js');
    await main();
}
