buroventures-harald-code
Version:
Harald Code - AI-powered coding assistant CLI
59 lines (58 loc) • 1.78 kB
TypeScript
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { Theme, ThemeType, CustomTheme } from './theme.js';
export interface ThemeDisplay {
name: string;
type: ThemeType;
isCustom?: boolean;
}
export declare const DEFAULT_THEME: Theme;
declare class ThemeManager {
private readonly availableThemes;
private activeTheme;
private customThemes;
constructor();
/**
* Loads custom themes from settings.
* @param customThemesSettings Custom themes from settings.
*/
loadCustomThemes(customThemesSettings?: Record<string, CustomTheme>): void;
/**
* Sets the active theme.
* @param themeName The name of the theme to set as active.
* @returns True if the theme was successfully set, false otherwise.
*/
setActiveTheme(themeName: string | undefined): boolean;
/**
* Gets the currently active theme.
* @returns The active theme.
*/
getActiveTheme(): Theme;
/**
* Gets a list of custom theme names.
* @returns Array of custom theme names.
*/
getCustomThemeNames(): string[];
/**
* Checks if a theme name is a custom theme.
* @param themeName The theme name to check.
* @returns True if the theme is custom.
*/
isCustomTheme(themeName: string): boolean;
/**
* Returns a list of available theme names.
*/
getAvailableThemes(): ThemeDisplay[];
/**
* Gets a theme by name.
* @param themeName The name of the theme to get.
* @returns The theme if found, undefined otherwise.
*/
getTheme(themeName: string): Theme | undefined;
findThemeByName(themeName: string | undefined): Theme | undefined;
}
export declare const themeManager: ThemeManager;
export {};