export declare function normalizeHost(input: string): string; export declare function normalizeCode(input: string): string; export interface ServerInput { /** Empty when nothing usable was in the input. */ host: string; /** Empty for a plain address, which carries no code. */ code: string; } export declare function parseServerInput(input: string, opts?: { defaultLegacyHost?: string; }): ServerInput; /** The link that opens an invite in whichever app somebody has. Leave out the code for a server anyone can join. */ export declare function inviteLink(host: string, code?: string): string; /** * Whether an address works for somebody on another network. Loopback, private and * link-local ranges, CGNAT, and names like `nas` or `box.local` do not. */ export declare function isPublicHost(host: string): boolean;