@agentman/chat-widget
Version:
Agentman Chat Widget for easy integration with web applications
25 lines (24 loc) • 832 B
TypeScript
import type { ChatConfig, ChatTheme, ChatAssets, ChatIcons } from './types/types';
export declare class ConfigManager {
private static readonly defaultTheme;
private static readonly defaultAssets;
private static readonly defaultIcons;
private config;
private theme;
private assets;
private icons;
constructor(config: ChatConfig);
private validateConfig;
private mergeWithDefaults;
private initializeTheme;
private initializeAssets;
private initializeIcons;
getConfig(): ChatConfig;
getTheme(): ChatTheme;
getAssets(): ChatAssets;
getIcons(): ChatIcons;
getCSSVariables(): Record<string, string>;
updateTheme(newTheme: Partial<ChatTheme>): void;
updateAssets(newAssets: Partial<ChatAssets>): void;
updateIcons(newIcons: Partial<ChatIcons>): void;
}