import type { DomicileHost } from "../domicile-host"; import type { On } from "./subscribe"; /** How the config asks the desktop to look, beside its theme. */ export type Appearance = { /** `#rrggbb`, or `undefined` to keep the shell's own accent. */ readonly accentColor: string | undefined; readonly highContrast: boolean; readonly reducedMotion: boolean; }; export type AppearanceListeners = { change: () => void; }; /** Each read throws on an accent that is not `#rrggbb`. */ export type AppearanceNamespace = Appearance & { on: On; }; export type AppearanceHost = Pick; export declare const appearance: (host: AppearanceHost) => AppearanceNamespace; /** The appearance `host` says now. Throws on an accent that is not `#rrggbb`. */ export declare const readAppearance: (host: Pick) => Appearance;