UNPKG

1.17 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Akveo. All Rights Reserved.
4 * Licensed under the MIT License. See License.txt in the project root for license information.
5 */
6import { NbJSThemeOptions } from './js-themes/theme.options';
7export declare const BUILT_IN_THEMES: NbJSThemeOptions[];
8/**
9 * Js Themes registry - provides access to the JS themes' variables.
10 * Usually shouldn't be used directly, but through the NbThemeService class methods (getJsTheme).
11 */
12export declare class NbJSThemesRegistry {
13 private themes;
14 constructor(builtInThemes: NbJSThemeOptions[], newThemes?: NbJSThemeOptions[]);
15 /**
16 * Registers a new JS theme
17 * @param config any
18 * @param themeName string
19 * @param baseTheme string
20 */
21 register(config: any, themeName: string, baseTheme: string): void;
22 /**
23 * Checks whether the theme is registered
24 * @param themeName
25 * @returns boolean
26 */
27 has(themeName: string): boolean;
28 /**
29 * Return a theme
30 * @param themeName
31 * @returns NbJSThemeOptions
32 */
33 get(themeName: string): NbJSThemeOptions;
34 private combineByNames;
35 private isObject;
36 private mergeDeep;
37}