openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
13 lines • 732 B
TypeScript
import { n as RuntimeEnv } from "./runtime-DlqUc5_p.js";
//#region src/infra/ports.d.ts
declare class PortInUseError extends Error {
port: number;
details?: string;
constructor(port: number, details?: string);
}
declare function describePortOwner(port: number): Promise<string | undefined>;
/** Probes Node's wildcard bind by default; callers may scope checks to their owned interface. */
declare function ensurePortAvailable(port: number, host?: string, signal?: AbortSignal): Promise<void>;
declare function handlePortError(err: unknown, port: number, context: string, runtime?: RuntimeEnv): Promise<never>;
//#endregion
export { handlePortError as i, describePortOwner as n, ensurePortAvailable as r, PortInUseError as t };