import type { Option, Result } from "@cprussin/option-result"; import type { Dbus } from "./desktop/dbus"; import type { SystemError } from "./system"; /** The calls this module makes. */ export type IconThemeDesktop = { readonly dbus: Pick; }; /** * The icon theme's directory name, such as `Papirus-Dark`, or `None` where * the config sets none and shells use `hicolor`. */ export declare const readIconTheme: (domicile: { readonly dbus: Pick; }) => Promise, SystemError>>; /** * Calls `listener` with the icon theme now and after each change to it, until * the returned function is called. A watch the desktop refuses is reported as * an `Err`, and the theme is still read once. */ export declare const watchIconTheme: (domicile: IconThemeDesktop, listener: (theme: Result, SystemError>) => void) => (() => void);