import { type ChildProcess } from "node:child_process"; import { type PonyProject } from "../core/index.js"; import { type ProcessSignalTarget } from "./terminal.js"; export declare const WEB_ENTRY_PATH: string; export declare const DEFAULT_WEB_HOST = "127.0.0.1"; export declare const MINIMUM_NODE_VERSION: { readonly major: 22; readonly minor: 0; }; export interface WebServerOptions { host?: string; open?: boolean; port?: string; } export interface ResolvedWebServerOptions { browserUrl: string; host: string; open: boolean; port: number; probeHost: string; } export interface WebServerRuntime { captureTerminalState(): () => void; pathExists(filePath: string): Promise; assertPortAvailable(host: string, port: number): Promise; findAvailablePort(host: string): Promise; isInteractive(): boolean; confirmPortChange(host: string, occupiedPort: number, availablePort: number): Promise; signalTarget: ProcessSignalTarget; spawnProcess(command: string, args: string[], options: { cwd: string; env: NodeJS.ProcessEnv; stdio: "inherit"; }): ChildProcess; waitForServer(child: ChildProcess, host: string, port: number): Promise; waitForExit(child: ChildProcess): Promise; openBrowser(url: string): Promise; } export declare class WebPortInUseError extends Error { readonly host: string; readonly port: number; readonly code = "EADDRINUSE"; constructor(host: string, port: number); } export declare function findPackageRoot(startUrl?: string): Promise; export declare function resolveWebServerOptions(configPort: number, options: WebServerOptions, env?: NodeJS.ProcessEnv): ResolvedWebServerOptions; export declare function isLoopbackHost(host: string): boolean; export declare function assertSupportedNodeVersion(version?: string): void; /** * Runtime dependencies are injectable so process, socket, and browser * lifecycle behavior can be verified without launching external resources. */ export declare function startWebServer(packageRoot: string, selectedProjects: PonyProject | readonly PonyProject[], options: WebServerOptions, env?: NodeJS.ProcessEnv, runtime?: WebServerRuntime): Promise; //# sourceMappingURL=web.d.ts.map