"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.start = start;
// src/index.ts - Main entry point for programmatic usage
const index_1 = require("./server/index");
/**
 * Start the EZ PM2 GUI server
 * @param options Configuration options
 * @returns The HTTP server instance
 */
function start(options = {}) {
    const port = options.port || process.env.PORT || 3101;
    const host = options.host || process.env.HOST || 'localhost';
    process.env.PORT = port.toString();
    process.env.HOST = host;
    return (0, index_1.createServer)();
}
exports.default = { start };
