import * as http from 'node:http'; /** Options for {@link HttpServer}. */ export type HttpServerOptions = { /** Host/interface to bind. Default: `'0.0.0.0'`. */ host?: string; /** Port to bind; `0` selects a free port. Default: `0`. */ port?: number; }; /** Local debug HTTP server exposing a tracing dashboard and status/stats endpoints. */ export declare class HttpServer { private _host; private _port; private _server; private _lock; private _worker; private _routesAdded; private _listening; constructor(opts?: HttpServerOptions); /** The underlying Node HTTP server. */ get app(): http.Server; /** The bound port (resolved to the actual port after {@link start} when `0` was requested). */ get port(): number; /** Attach the worker whose status and stats the debug endpoints report on. */ setWorker(worker: any): void; /** Start listening. Resolves once the server is bound. */ start(): Promise; /** Stop listening and close the server. */ close(): Promise; private _dispatch; private _options; private _opt; private _executorTypeStr; private _stats; private _currentJobs; private static _entries; private static _get; private _sendJson; private _sendText; private _handleDashboard; private _workerDebug; private _runnersList; private _runnerDetails; private _healthCheck; private _workerStatus; private _workerStats; private _debugInfo; private _apiStatus; }