import type { Result } from "@cprussin/option-result"; import type { SystemError } from "@domicile-desktop/sdk/system"; import type { Network, NetworkDesktop } from "./network-state"; export type { Network, NetworkDesktop } from "./network-state"; export { Connectivity, Link, LinkKind } from "./network-state"; /** * Calls `onNetwork` with the network now and after each change, and returns a * function that stops watching. * * Watches the first of NetworkManager, iwd and wpa_supplicant that is on the * system bus when called, or NetworkManager when none is; see each backend's * watch. An `Err` is a D-Bus failure, such as none of them running. When the * bus cannot say which runs, the watch reports that `Err` and ends. */ export declare const watchNetwork: (domicile: NetworkDesktop, onNetwork: (network: Result) => void) => (() => void);