/** * Color scheme preference (system / light / dark). * * The preference lives in the `ob-color-scheme` cookie so the article template * can read it server side and render `data-color-scheme` on `` and * `` before the first paint. The site script for the 2026 template * (`ob.2026.application.min.js`) owns the same cookie for the toolbar user menu * toggle, so both write the cookie, apply the attributes, and dispatch * `COLOR_SCHEME_CHANGE_EVENT` to keep every toggle on the page in sync. */ export type ColorSchemePreference = "auto" | "light" | "dark"; /** Dispatched on `window` whenever the preference changes. */ export declare const COLOR_SCHEME_CHANGE_EVENT = "ob:colorschemechange"; export declare function getColorSchemePreference(): ColorSchemePreference; export declare function setColorSchemePreference(preference: ColorSchemePreference): void; /** Reads the stored preference and keeps it in sync with other toggles on the page. */ export declare function useColorSchemePreference(): [ColorSchemePreference, (value: ColorSchemePreference) => void];