1 | /**
|
2 | * Utility to emulate a CSS stylesheet
|
3 | *
|
4 | * This utility class stores all of the styles for a given HTML element
|
5 | * as a readonly `stylesheet` map.
|
6 | */
|
7 | export declare class StylesheetMap {
|
8 | readonly stylesheet: Map<HTMLElement, Map<string, string | number>>;
|
9 | /**
|
10 | * Add an individual style to an HTML element
|
11 | */
|
12 | addStyleToElement(element: HTMLElement, style: string, value: string | number): void;
|
13 | /**
|
14 | * Clear the virtual stylesheet
|
15 | */
|
16 | clearStyles(): void;
|
17 | /**
|
18 | * Retrieve a given style for an HTML element
|
19 | */
|
20 | getStyleForElement(el: HTMLElement, styleName: string): string;
|
21 | }
|