/** * Get the local IP address of the machine. * * Returns `127.0.0.1` if there is no external IP address. */ export declare function localIP(): string; /** * Get the global IP address of the machine. * * Returns `0.0.0.0` if unable to get global IP address. */ export declare function globalIP(): Promise; /** * Create a list of addresses that a TCP, HTTP, or * WebSocket server can be reached at. * * This function is used to expand a single host address * so that peers that are close to the server * (i.e. share the same network or machine) can connect * more directly. */ export declare function expandAddress(address: string, defaults?: { scheme: string; host: string; port: number; }): Promise;