"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var command_output_exports = {};
__export(command_output_exports, {
  CommandOutputHelper: () => CommandOutputHelper
});
module.exports = __toCommonJS(command_output_exports);
var import_format_output = require("./format-output.js");
class CommandOutputHelper {
  /**
   * Format success message for ink-cli to display
   */
  static success(message) {
    return (0, import_format_output.formatForInkCli)(message);
  }
  /**
   * Format info message for ink-cli to display
   */
  static info(message) {
    return (0, import_format_output.formatForInkCli)(message);
  }
  /**
   * Format warning message for ink-cli to display
   */
  static warning(message) {
    return (0, import_format_output.formatForInkCli)(`\u26A0\uFE0F ${message}`);
  }
  /**
   * Format error message for ink-cli to display
   */
  static error(error, context) {
    const errorMessage = error instanceof Error ? error.message : String(error);
    const fullMessage = context ? `\u274C ${context}: ${errorMessage}` : `\u274C ${errorMessage}`;
    return (0, import_format_output.formatForInkCli)(fullMessage);
  }
  /**
   * Format multi-line output for ink-cli to display
   */
  static output(lines) {
    return (0, import_format_output.formatForInkCli)(lines.join("\n"));
  }
  /**
   * Create styled output for rich rendering in ink-cli
   * @param styledType - The type of styled rendering
   * @param styledData - The structured data for rendering
   * @param fallbackText - Plain text fallback for logging/non-ink environments
   */
  static styled(styledType, styledData, fallbackText) {
    return {
      styledType,
      styledData,
      fallbackText: (0, import_format_output.formatForInkCli)(fallbackText)
    };
  }
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  CommandOutputHelper
});
