/** * Theme Registry * * Central registry for all available themes. Provides utilities for * theme lookup, validation, and management. */ import type { Theme, ThemePreset } from './types.js'; /** * Map of all built-in themes */ export declare const themes: Record; /** * List of available theme presets (built-in only) */ export declare const availablePresets: ThemePreset[]; /** * Get a theme by preset name * Checks built-in themes first, then custom registered themes * @param preset - Theme preset identifier * @returns The theme definition * @throws Error if preset is invalid */ export declare function getTheme(preset: ThemePreset): Theme; /** * Check if a preset is valid (built-in or custom) * @param preset - Value to check * @returns True if valid theme preset */ export declare function isValidPreset(preset: string): preset is ThemePreset; /** * Get theme display name * @param preset - Theme preset * @returns Human-readable theme name */ export declare function getThemeName(preset: ThemePreset): string; /** * Get all themes as array (built-in only) * @returns Array of theme definitions */ export declare function getAllThemes(): Theme[]; /** * Get theme options for UI selection * @returns Array of {value, label} objects */ export declare function getThemeOptions(): { value: ThemePreset; label: string; }[]; /** * Register a custom theme in the registry * @internal Use registerTheme from create-theme.ts instead */ export declare function registerCustomTheme(theme: Theme): void; /** * Get a custom theme by id * @internal */ export declare function getCustomTheme(id: string): Theme | undefined; /** * Check if a custom theme is registered * @internal */ export declare function hasCustomTheme(id: string): boolean; //# sourceMappingURL=registry.d.ts.map