export var ErrorCode;
(function (ErrorCode) {
    ErrorCode[ErrorCode["CLIENT_ERROR"] = 1] = "CLIENT_ERROR";
    ErrorCode[ErrorCode["SERVER_ERROR"] = 2] = "SERVER_ERROR";
    ErrorCode[ErrorCode["NETWORK_ERROR"] = 3] = "NETWORK_ERROR";
    ErrorCode[ErrorCode["AUTH_ERROR"] = 4] = "AUTH_ERROR";
})(ErrorCode || (ErrorCode = {}));
export function formatCliError(error) {
    const lines = [];
    lines.push(`Error [${error.type}]: ${error.message}`);
    if (error.details) {
        lines.push(`  Details: ${error.details}`);
    }
    if (error.suggestion) {
        lines.push(`  Suggestion: ${error.suggestion}`);
    }
    return lines.join('\n');
}
