import type { Server as NodeHttpsServer } from 'node:https'; import { type IncomingMessage, type ServerResponse, type Server as NodeHttpServer } from 'node:http'; import { type Ignitor } from './main.ts'; /** * The HTTP server process is used to start the application in the * web environment. It creates and manages the Node.js HTTP server * instance, handling lifecycle events and monitoring. * * @example * const ignitor = new Ignitor() * const httpProcess = new HttpServerProcess(ignitor) * await httpProcess.start() */ export declare class HttpServerProcess { #private; /** * Creates a new HTTP server process instance * * @param ignitor - The ignitor instance used to create and manage the app */ constructor(ignitor: Ignitor); /** * Start the HTTP server by wiring up the application * * @param serverCallback - Optional callback to create custom HTTP server instance */ start(serverCallback?: (handler: (req: IncomingMessage, res: ServerResponse) => any) => NodeHttpsServer | NodeHttpServer): Promise; }