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 iwd's network now and after each change, and returns * a function that stops watching. * * iwd knows only Wi-Fi: connectivity is always `Unknown`, and the link is the * connected Wi-Fi network or `None`. An `Err` is a D-Bus failure, such as iwd * not running. The watch keeps listening after one, so a later change reads * again. */ export declare const watchIwd: (domicile: NetworkDesktop, onNetwork: (network: Result) => void) => (() => void);