import type { Result } from "@cprussin/option-result"; import type { SystemError } from "@domicile-desktop/sdk/system"; import type { Network, NetworkDesktop } from "./network-state"; /** * Calls `onNetwork` with NetworkManager's network now and after each change, * and returns a function that stops watching. * * An `Err` is a D-Bus failure, such as NetworkManager not running. The watch * keeps listening after one, so a later change reads again. */ export declare const watchNetworkManager: (domicile: NetworkDesktop, onNetwork: (network: Result) => void) => (() => void);