// src/output/logger.ts
import chalk from "chalk";
var logger = {
  /**
   * Logs an informational message with a blue 'i' icon.
   * @param message - The message to log.
   */
  info: (message) => console.log(chalk.blue("i"), message),
  /**
   * Logs a success message with a green 'v' icon.
   * @param message - The message to log.
   */
  success: (message) => console.log(chalk.green("v"), message),
  /**
   * Logs a warning message with a yellow '!' icon.
   * @param message - The message to log.
   */
  warn: (message) => console.log(chalk.yellow("!"), message),
  /**
   * Logs an error message with a red 'x' icon to stderr.
   * @param message - The message to log.
   */
  error: (message) => console.error(chalk.red("x"), message),
  /**
   * Logs a dimmed message.
   * @param message - The message to log.
   */
  dim: (message) => console.log(chalk.dim(message)),
  /**
   * Logs raw data as a formatted JSON string.
   * Useful for JSON output mode.
   * @param data - The data to log.
   */
  raw: (data) => console.log(JSON.stringify(data, null, 2))
};

export {
  logger
};
