UNPKG

758 BTypeScriptView Raw
1export declare enum CssUrl {
2 inline = "inline",
3 none = "none"
4}
5export interface WorkerOptions {
6 filePath: string;
7 basePath: string;
8 browserslistData: string[];
9 cssUrl?: CssUrl;
10 styleIncludePaths?: string[];
11 cachePath: string;
12 alwaysUseWasm: boolean;
13}
14export interface WorkerResult {
15 css: string;
16 warnings: string[];
17 error?: string;
18}
19export declare class StylesheetProcessor {
20 private readonly basePath;
21 private readonly cssUrl?;
22 private readonly styleIncludePaths?;
23 private browserslistData;
24 private worker;
25 private readonly cachePath;
26 private alwaysUseWasm;
27 constructor(basePath: string, cssUrl?: CssUrl, styleIncludePaths?: string[]);
28 process(filePath: string): any;
29}