1 | import { Disposable } from "../index";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | export interface StyleManager {
|
8 |
|
9 |
|
10 | observeStyleElements(callback: (styleElement: StyleElementObservedEvent) => void): Disposable;
|
11 |
|
12 |
|
13 | onDidAddStyleElement(callback: (styleElement: StyleElementObservedEvent) => void): Disposable;
|
14 |
|
15 |
|
16 | onDidRemoveStyleElement(callback: (styleElement: HTMLStyleElement) => void): Disposable;
|
17 |
|
18 |
|
19 | onDidUpdateStyleElement(callback: (styleElement: StyleElementObservedEvent) => void): Disposable;
|
20 |
|
21 |
|
22 |
|
23 | getStyleElements(): HTMLStyleElement[];
|
24 |
|
25 |
|
26 |
|
27 | getUserStyleSheetPath(): string;
|
28 | }
|
29 |
|
30 | export interface StyleElementObservedEvent extends HTMLStyleElement {
|
31 | sourcePath: string;
|
32 | context: string;
|
33 | }
|