/** * I/O Sense's look, worn over the app's own design system when the person chose it for this app in * their sidebar. The host works out the variables for the app's own library (shadcn's `--primary`, * MUI's `--mui-palette-primary-main`, a company library's own token names) and sends them; this puts * them on the page over the library's, and follows each change the host sends, with no reload. * Outside I/O Sense, or with the app's own look chosen, it does nothing. */ export interface HostLook { mode: 'light' | 'dark'; vars: Record; /** More selectors that hold the library's variables themselves (Ant Design's `.css-var-*`). */ scope?: string[]; /** The `data-theme` the library's own light/dark switch reads. */ theme?: string; /** A Google Fonts stylesheet. */ fonts?: string; } /** Read and clean a look from the host; null for "its own look", undefined for nonsense. */ export declare function hostLookOf(raw: unknown): HostLook | null | undefined; /** The stylesheet a look makes: its variables over the library's, whatever the library's selectors. */ export declare function hostLookCss(look: HostLook): string; /** Put a look on the page, or take it off (null). */ export declare function wearHostLook(look: HostLook | null): void; /** * Ask the host for its look and follow what it sends. Once per page; `` calls it before * its first render. The question carries nothing, so it may go to any parent; only a trusted host's * answer is worn. */ export declare function startHostLook(): void;