1 |
|
2 |
|
3 | export interface RegisteredCache {
|
4 | [key: string]: string;
|
5 | }
|
6 | export interface StyleSheet {
|
7 | container: HTMLElement;
|
8 | nonce?: string;
|
9 | key: string;
|
10 | insert(rule: string): void;
|
11 | flush(): void;
|
12 | tags: Array<HTMLStyleElement>;
|
13 | }
|
14 | export interface EmotionCache {
|
15 | inserted: {
|
16 | [key: string]: string | true;
|
17 | };
|
18 | registered: RegisteredCache;
|
19 | sheet: StyleSheet;
|
20 | key: string;
|
21 | compat?: true;
|
22 | nonce?: string;
|
23 | insert(selector: string, serialized: SerializedStyles, sheet: StyleSheet, shouldCache: boolean): string | void;
|
24 | }
|
25 | export interface SerializedStyles {
|
26 | name: string;
|
27 | styles: string;
|
28 | map?: string;
|
29 | next?: SerializedStyles;
|
30 | }
|
31 | export const isBrowser: boolean;
|
32 | export function getRegisteredStyles(registered: RegisteredCache, registeredStyles: Array<string>, classNames: string): string;
|
33 | export function registerStyles(cache: EmotionCache, serialized: SerializedStyles, isStringTag: boolean): void;
|
34 | export function insertStyles(cache: EmotionCache, serialized: SerializedStyles, isStringTag: boolean): string | void; |
\ | No newline at end of file |