/** * Nexus Cortex - UI Colors * * Themeable color constants for the Ink UI. * Uses theme definitions from the chalk CLI theme system. * Theme persistence via .cortex/config.json with platform-specific settings. * * Platforms: * - fuzzycortex: Chalk-based terminal UI * - neoncortex: Ink-based React terminal UI * - cortexserver: HTTP API server */ import { type ThemeDefinition, type ThemeName, themeNames } from './themeDefinitions.js'; /** * Platform identifiers for platform-specific settings */ export type Platform = 'fuzzycortex' | 'neoncortex' | 'cortexserver'; /** * Load persisted theme for a specific platform */ export declare function loadPersistedThemeForPlatform(platform: Platform): ThemeName | null; /** * Save theme for a specific platform */ export declare function persistThemeForPlatform(platform: Platform, themeName: ThemeName): boolean; /** * Load persisted default model for a specific platform */ export declare function loadPersistedModelForPlatform(platform: Platform): string | null; /** * Save default model for a specific platform */ export declare function persistModelForPlatform(platform: Platform, modelId: string): boolean; /** * Load persisted theme from .cortex/config.json * @deprecated Use loadPersistedThemeForPlatform() instead */ export declare function loadPersistedTheme(): ThemeName | null; /** * Save theme to .cortex/config.json for persistence * @deprecated Use persistThemeForPlatform() instead */ export declare function persistTheme(themeName: ThemeName): boolean; /** * Load persisted default model from .cortex/config.json * @deprecated Use loadPersistedModelForPlatform() instead */ export declare function loadPersistedModel(): string | null; /** * Save default model to .cortex/config.json for persistence * @deprecated Use persistModelForPlatform() instead */ export declare function persistModel(modelId: string): boolean; export interface ColorsTheme { type: 'dark' | 'light'; Foreground: string; Background: string; White: string; LightBlue: string; AccentBlue: string; AccentPurple: string; AccentCyan: string; AccentGreen: string; AccentYellow: string; AccentRed: string; DiffAdded: string; DiffRemoved: string; Comment: string; Gray: string; DarkGray: string; GradientColors: string[]; primary: string; secondary: string; info: string; text: string; dimmed: string; warning: string; } export { themeNames }; export type { ThemeName }; /** * Get all available theme names */ export declare function getThemeNames(): ThemeName[]; /** * Get current theme name */ export declare function getCurrentThemeName(): ThemeName; /** * Set the current theme (optionally persisting to .cortex/config.json) * @param themeName - Theme to set * @param persist - Whether to save to .cortex/config.json (default: true) */ export declare function setTheme(themeName: ThemeName, persist?: boolean): boolean; /** * Initialize theme from persisted config or use default * Call this on app startup to load the user's preferred theme */ export declare function initializeTheme(): ThemeName; /** * Get theme definition by name */ export declare function getThemeDefinition(themeName: ThemeName): ThemeDefinition | undefined; /** * Default color theme (Tokyo Night inspired) */ export declare const Colors: ColorsTheme; //# sourceMappingURL=colors.d.ts.map