/** * 主题配置 */ export interface ThemeConfig { /** 背景色 */ backgroundColor: string; /** 文字颜色 */ textColor: string; /** 次要文字颜色 */ textColorSecondary: string; /** 网格线颜色 */ gridLineColor: string; /** 上涨颜色 */ upColor: string; /** 下跌颜色 */ downColor: string; /** 均线颜色(按周期顺序) */ maColors: string[]; /** 成交量上涨颜色 */ volumeUpColor: string; /** 成交量下跌颜色 */ volumeDownColor: string; /** 十字准线颜色 */ crosshairColor: string; /** Tooltip 背景色 */ tooltipBgColor: string; /** Tooltip 边框颜色 */ tooltipBorderColor: string; /** 分割线颜色 */ splitLineColor: string; /** 区域填充颜色(分时图下方) */ areaColor: string; /** 选中高亮色 */ activeColor: string; /** BOLL 指标颜色 [上轨, 中轨, 下轨] */ bollColors: [string, string, string]; /** KC 指标颜色 [上轨, 中轨, 下轨] */ kcColors: [string, string, string]; } /** * 浅色主题 */ export declare const lightTheme: ThemeConfig; /** * 深色主题 */ export declare const darkTheme: ThemeConfig; /** * 获取主题配置 */ export declare function getTheme(theme: 'light' | 'dark' | ThemeConfig): ThemeConfig;