/** * Network Service * Detects and manages network interfaces */ interface NetworkAddress { address: string; family: string; internal: boolean; } interface NetworkInterface { name: string; addresses: NetworkAddress[]; } interface BindingOption { label: string; value: string; description: string; interface: string; } interface NetworkInfo { hostname: string; primaryIp: string | null; interfaces: NetworkInterface[]; bindingOptions: BindingOption[]; } declare class NetworkService { /** * Get all available network interfaces with their addresses */ getNetworkInterfaces(): NetworkInterface[]; /** * Get a formatted list of binding options for UI */ getBindingOptions(): BindingOption[]; /** * Get the current machine's primary IP address */ getPrimaryIpAddress(): string | null; /** * Validate if an IP address is valid for binding */ isValidBindingAddress(address: string): boolean; /** * Format network information for display */ getNetworkInfo(): NetworkInfo; /** * Check if running in Docker container */ isDocker(): boolean; /** * Get recommended binding address based on environment */ getRecommendedBindingAddress(): string; /** * Parse connection string (host:port) */ parseConnectionString(connectionString: string): { host: string; port: number; } | null; /** * Format connection URL */ formatConnectionUrl(protocol: string, host: string, port: number, path?: string): string; /** * Get network latency to a host */ getLatency(host: string, timeout?: number): Promise; /** * Check if a host is reachable */ isHostReachable(host: string, port: number, timeout?: number): Promise; /** * Get network statistics */ getNetworkStats(): Record; } export declare function getNetworkService(): NetworkService; export default NetworkService; //# sourceMappingURL=networkService.d.ts.map