/** * Navidrome MCP Server - Web UI source address classifier * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ type SourceClass = 'loopback' | 'lan' | 'public'; /** * A private source is a hint, never proof. A NAT, a container proxy or a port forward can make an * internet client look local, so this check is no reason to expose the port. */ export declare function classifySource(remoteAddress: string | undefined): SourceClass; /** * Groups internet peers, since one home or ISP customer usually holds a whole IPv6 /64. Every * device on one LAN shares a /64, so the key never tells LAN devices apart. */ export declare function networkKey(remoteAddress: string | undefined): string; /** The peer as the user would type it, so a mapped `::ffff:` IPv4 peer reads as plain IPv4. */ export declare function sourceAddress(remoteAddress: string | undefined): string; /** * Docker, Podman and WSL forward ports through a proxy, so a remote peer can arrive with a local * address. Every WSL kernel matches, since a custom WSL2 kernel may lack the `microsoft-standard` tag. */ export declare function isAddressRewritingHost(): boolean; export {}; //# sourceMappingURL=source-address.d.ts.map