import { Result } from "@cprussin/option-result"; import type { SystemError } from "@domicile-desktop/sdk/system"; import type { Network, NetworkDesktop } from "./network-state"; /** * Calls `onNetwork` with wpa_supplicant's network now and after each change, * and returns a function that stops watching. wpa_supplicant is on the bus * only when it runs with `-u`. * * wpa_supplicant 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 wpa_supplicant not on the bus. The watch keeps listening after one, * so a later change reads again. */ export declare const watchWpaSupplicant: (domicile: NetworkDesktop, onNetwork: (network: Result) => void) => (() => void);