import type { Dbus } from "@domicile-desktop/sdk/desktop/dbus"; /** Whether the host reaches the internet. */ export declare enum Connectivity { Unknown = 0, None = 1, /** Behind a captive portal. */ Portal = 2, /** On a network, without the internet. */ Limited = 3, Full = 4 } export declare enum LinkKind { None = 0, Wired = 1, Wifi = 2, Other = 3 } /** The primary connection. `name` is the connection's name in NetworkManager. */ export declare const Link: { None: () => { kind: LinkKind.None; }; /** A VPN, a bridge, a modem and the rest. */ Other: (name: string) => { kind: LinkKind.Other; name: string; }; /** `strength` is 0 through 1. */ Wifi: (ssid: string, strength: number) => { kind: LinkKind.Wifi; ssid: string; strength: number; }; Wired: (name: string) => { kind: LinkKind.Wired; name: string; }; }; export type Link = ReturnType<(typeof Link)[keyof typeof Link]>; export type Network = { connectivity: Connectivity; link: Link; }; /** The calls this library makes. */ export type NetworkDesktop = { readonly dbus: Pick; };