UNPKG

692 BTypeScriptView Raw
1/**
2 * @group Utils
3 */
4export declare function findLoopbackAddress(): string;
5/**
6 * Returns the loopback address for the machine.
7 * Uses IPV4 loopback address by default and falls back to global unique IPv6 loopback and then
8 * link local IPv6 loopback address.
9 * If no loopback interface could be found a error is thrown.
10 *
11 * @group Utils
12 */
13export declare function getOSLoopbackAddress(): string;
14/**
15 * Refer to {@link getOSLoopbackAddress}.
16 * Instead of throwing an error, undefined is returned if loopback interface couldn't be detected.
17 *
18 * @group Utils
19 */
20export declare function getOSLoopbackAddressIfAvailable(): string | undefined;
21//# sourceMappingURL=net-utils.d.ts.map
\No newline at end of file