1 | import { NbFontIconPackParams, NbIconPack, NbIconPackParams, NbIcons } from './icon-pack';
|
2 | import { NbFontIcon, NbIcon, NbSvgIcon } from './icon';
|
3 | import * as i0 from "@angular/core";
|
4 | export declare class NbIconDefinition {
|
5 | name: string;
|
6 | type: string;
|
7 | pack: string;
|
8 | icon: NbIcon;
|
9 | }
|
10 |
|
11 |
|
12 |
|
13 | export declare class NbIconLibraries {
|
14 | protected packs: Map<string, NbIconPack>;
|
15 | protected defaultPack: NbIconPack;
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | registerSvgPack(name: string, icons: NbIcons, params?: NbIconPackParams): void;
|
23 | |
24 |
|
25 |
|
26 |
|
27 |
|
28 | registerFontPack(name: string, params?: NbFontIconPackParams): void;
|
29 | |
30 |
|
31 |
|
32 |
|
33 | getPack(name: string): NbIconPack;
|
34 | |
35 |
|
36 |
|
37 |
|
38 | setDefaultPack(name: string): void;
|
39 | |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | getSvgIcon(name: string, pack?: string): NbIconDefinition | null;
|
47 | |
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 | getFontIcon(name: string, pack?: string): NbIconDefinition;
|
55 | |
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 | getIcon(name: string, pack?: string): NbIconDefinition | null;
|
63 | protected createSvgIcon(name: string, content: NbIcon | string, params: NbIconPackParams): NbSvgIcon;
|
64 | protected createFontIcon(name: string, content: NbIcon | string, params: NbFontIconPackParams): NbFontIcon;
|
65 | protected getPackOrThrow(name: string): NbIconPack;
|
66 | protected getDefaultPackOrThrow(): NbIconPack;
|
67 | protected getIconFromPack(name: string, pack: NbIconPack): NbIcon | string | null;
|
68 | static ɵfac: i0.ɵɵFactoryDeclaration<NbIconLibraries, never>;
|
69 | static ɵprov: i0.ɵɵInjectableDeclaration<NbIconLibraries>;
|
70 | }
|