type ThemePresetId = 'default' | 'ocean' | 'forest' | 'berry' | 'sand' | 'ayu' | 'doodles' | 'black' | 'white'; type SurfaceLevel = '0' | '1' | '2' | '3' | '4'; type SurfaceContextualToken = 'borderDefault' | 'borderSubtle' | 'ctaBg' | 'ctaBgActive' | 'ctaBgHover' | 'ctaBorder' | 'ctaFg' | 'fg' | 'fgDisabled' | 'fgSecondary' | 'fgTertiary' | 'inputBg' | 'inputBgActive' | 'inputBgDisabled' | 'inputBgHighlight' | 'inputBorder' | 'inputBorderActive' | 'inputBorderError' | 'inputBorderFocus' | 'inputBorderHighlight' | 'inputBorderHover' | 'inputPlaceholder' | 'tabBg' | 'tabBgHover' | 'tabOutline'; type SurfaceScopes = Partial>>>; type ThemeMode = 'light' | 'dark' | 'system'; interface ThemeColors { surface0: string; surface0Hover: string; surface0Active: string; surface0Highlight: string; surface1: string; surface1Hover: string; surface1Active: string; surface1Highlight: string; surface2: string; surface2Hover: string; surface2Active: string; surface2Highlight: string; surface3: string; surface3Hover: string; surface3Active: string; surface3Highlight: string; surface4: string; surface4Hover: string; surface4Active: string; surface4Highlight: string; fg: string; fgSecondary: string; fgTertiary: string; fgDisabled: string; fgInverse: string; fgLink: string; fgSuccess: string; fgWarning: string; fgError: string; borderSubtle: string; borderDefault: string; borderMainContent: string; borderSuccess: string; borderWarning: string; borderError: string; accent: string; accentForeground: string; accentHover: string; accentActive: string; accentSubtle: string; accentMuted: string; accentBorder: string; ctaBg: string; ctaFg: string; ctaBgHover: string; ctaBgActive: string; ctaBorder: string; sidebarAccent: string; sidebarAccentForeground: string; sidebarHover: string; tabBg: string; tabBgHover: string; tabOutline: string; inputBg: string; inputBorder: string; inputBorderHover: string; inputBorderFocus: string; inputBorderError: string; inputBorderActive: string; inputBorderHighlight: string; inputBgActive: string; inputBgHighlight: string; inputBgDisabled: string; inputPlaceholder: string; bgSuccess: string; bgWarning: string; bgError: string; contentPreviewBg: string; contentPreviewFg: string; contentPreviewBorder: string; } interface ThemePresetColors extends ThemeColors { background?: string; panelBackground?: string; mainPanelBackground?: string; ring?: string; overlay?: string; surfaceGlass?: string; skeleton?: string; } interface PresetPreview { bg: string; accent: string; text: string; } interface ThemePreset { id: ThemePresetId; name: string; description: string; allowedModes?: ('light' | 'dark')[]; preview: { light: PresetPreview; dark: PresetPreview; }; } interface ThemeShadows { shadow0: string; shadow1: string; shadow2: string; shadow3: string; shadow4: string; } interface ThemeSpacing { spacing0: string; spacing05: string; spacing1: string; spacing15: string; spacing2: string; spacing3: string; spacing4: string; spacing5: string; spacing6: string; spacing8: string; spacing10: string; spacing12: string; } interface ThemeBorderRadius { radiusNone: string; radiusSm: string; radiusMd: string; radiusLg: string; radiusXl: string; radius2xl: string; radiusFull: string; } interface ThemeSpacingNumeric { spacing0: number; spacing05: number; spacing1: number; spacing15: number; spacing2: number; spacing3: number; spacing4: number; spacing5: number; spacing6: number; spacing8: number; spacing10: number; spacing12: number; } interface ThemeBorderRadiusNumeric { radiusNone: number; radiusSm: number; radiusMd: number; radiusLg: number; radiusXl: number; radius2xl: number; radiusFull: number; } /** * Resolve the full set of theme colors for a given preset and mode. * Returns HSL triplet strings ("H S% L%") — the canonical format for CSS variables. */ declare function resolveTheme(preset: ThemePresetId, mode: 'light' | 'dark'): ThemeColors; /** * Resolve preset colors including optional extended tokens (background, panelBackground, etc.). * Used by web/desktop apps that need these additional CSS variables. * * Merge order: base core → base extended → preset overrides. Base extended * tokens come from tokens/base/{light,dark}.json so the `default` preset * (which has no overrides of its own) still emits values for `--background`, * `--panel-bg`, `--ring`, etc. Themed presets continue to override on top. */ declare function resolveThemeExtended(preset: ThemePresetId, mode: 'light' | 'dark'): ThemePresetColors; /** * Resolve the surface-contextual token scopes for a given preset and mode. * Returns a mapping of surface levels to their contextual token overrides. */ declare function resolveSurfaceScopes(preset: ThemePresetId, mode: 'light' | 'dark'): SurfaceScopes; /** * Check if a preset is allowed for a given mode. */ declare function isPresetAllowedForMode(id: ThemePresetId, mode: 'light' | 'dark'): boolean; declare const BASE_LIGHT: ThemeColors; declare const BASE_DARK: ThemeColors; declare const SURFACE_SCOPES_LIGHT: SurfaceScopes; declare const SURFACE_SCOPES_DARK: SurfaceScopes; type PartialColors = Partial & { background?: string; panelBackground?: string; mainPanelBackground?: string; ring?: string; overlay?: string; surfaceGlass?: string; skeleton?: string; }; declare const PRESET_OVERRIDES: Record; declare const THEME_PRESETS: Record; declare const THEME_PRESET_IDS: ThemePresetId[]; declare const SHADOWS_LIGHT: ThemeShadows; declare const SHADOWS_DARK: ThemeShadows; declare const SHADOW_TO_CSS: Record; declare const SPACING: ThemeSpacing; declare const BORDER_RADIUS: ThemeBorderRadius; declare const SPACING_TO_CSS: Record; declare const RADIUS_TO_CSS: Record; export { type ThemeSpacing as A, BASE_DARK as B, type PresetPreview as P, RADIUS_TO_CSS as R, type SurfaceLevel as S, type ThemePresetId as T, type ThemeColors as a, BASE_LIGHT as b, type SurfaceContextualToken as c, type SurfaceScopes as d, THEME_PRESETS as e, THEME_PRESET_IDS as f, type ThemeMode as g, type ThemePreset as h, type ThemePresetColors as i, type ThemeShadows as j, isPresetAllowedForMode as k, resolveTheme as l, resolveThemeExtended as m, type ThemeBorderRadiusNumeric as n, type ThemeSpacingNumeric as o, BORDER_RADIUS as p, PRESET_OVERRIDES as q, resolveSurfaceScopes as r, SHADOWS_DARK as s, SHADOWS_LIGHT as t, SHADOW_TO_CSS as u, SPACING as v, SPACING_TO_CSS as w, SURFACE_SCOPES_DARK as x, SURFACE_SCOPES_LIGHT as y, type ThemeBorderRadius as z };