1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import { Container, Rule } from "postcss";
|
8 |
|
9 | export interface Replacements {
|
10 | [key: string]: string;
|
11 | }
|
12 |
|
13 | export interface CSSImports {
|
14 | [key: string]: { [key: string]: string };
|
15 | }
|
16 |
|
17 | export interface CSSExports {
|
18 | [key: string]: string;
|
19 | }
|
20 |
|
21 | export interface ExtractedICSS {
|
22 | icssImports: CSSImports;
|
23 | icssExports: CSSExports;
|
24 | }
|
25 |
|
26 | export function replaceValueSymbols(value: string, replacements: Replacements): string;
|
27 |
|
28 | export function replaceSymbols(css: Container, replacements: Replacements): void;
|
29 |
|
30 | export function extractICSS(css: Container, removeRules?: boolean): ExtractedICSS;
|
31 |
|
32 | export function createICSSRules(imports: CSSImports, exports: CSSExports): Rule[];
|