/** * Resolve the light-mode token map for a config. * @param {object} c theme config * @returns {Record} */ export function resolveLight(c: object): Record; /** * Resolve the dark-mode token map. null dark fields are HSL-inverted from * their light counterpart; explicit (non-null) values win. * * Only dark-specific tokens are emitted (text, surface, cardSurface + their * derivations). Common tokens (primary, status colors, radii, border-width, * text-on-primary, btn-bg, brand/status text) are NOT re-emitted — they * inherit from the `.theme-` light block on the same element. This keeps * the dark block small and avoids restating values that do not change. * @param {object} c theme config * @returns {Record} */ export function resolveDark(c: object): Record; /** * Generate the `.theme-` and `html.dark .theme-` CSS rules. * @param {string} name theme name * @param {object} config { common, light, dark } * @param {{ light?: object, dark?: object }|null} [override] style-override layer * @returns {{ light: string, dark: string }} */ export function generateThemeCss(name: string, config: object, override?: { light?: object; dark?: object; } | null): { light: string; dark: string; }; /** * Apply a theme config's CSS vars directly to a DOM element (live preview). * Sets every resolved token; clears any previously-set --t-* var not in the new map. * @param {HTMLElement} el * @param {object} config { common, light, dark } * @param {boolean} isDark */ export function applyThemeToElement(el: HTMLElement, config: object, isDark: boolean): void;