import type { Result } from "@cprussin/option-result"; import type { DbusMatch, DbusSignal, SystemError } from "@domicile-desktop/sdk/system"; import type { NetworkDesktop } from "./network-state"; /** What one read found, and which signals can change it. */ export type Reading> = { value: Result; matters: (signal: DbusSignal) => boolean; }; /** * Calls `onValue` with what `read` finds now and after each signal that * matters, and returns a function that stops watching. */ export declare const followBus: >(domicile: NetworkDesktop, match: DbusMatch, read: () => Promise>, onValue: (value: Result) => void) => (() => void);