UNPKG

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