tailwindcss 0.0.0-internal.6835ef85 → 0.0.0-internal.b2586d4e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.d.mts CHANGED
@@ -1,53 +1,3 @@
1
- interface ClassMetadata {
2
- modifiers: string[];
3
- }
4
- type ClassEntry = [string, ClassMetadata];
5
- interface SelectorOptions {
6
- modifier?: string;
7
- value?: string;
8
- }
9
- interface VariantEntry {
10
- name: string;
11
- isArbitrary: boolean;
12
- values: string[];
13
- hasDash: boolean;
14
- selectors: (options: SelectorOptions) => string[];
15
- }
16
-
17
- declare class Theme {
18
- private values;
19
- constructor(values?: Map<string, string>);
20
- add(key: string, value: string): void;
21
- keysInNamespaces(themeKeys: ThemeKey[]): string[];
22
- get(themeKeys: ThemeKey[]): string | null;
23
- entries(): IterableIterator<[string, string]>;
24
- clearNamespace(namespace: string): void;
25
- resolveKey(candidateValue: string, themeKeys: ThemeKey[]): string | null;
26
- var(themeKey: string): string | null;
27
- resolve(candidateValue: string, themeKeys: ThemeKey[]): string | null;
28
- resolveBare(candidateValue: string, themeKeys: ThemeKey[]): string | null;
29
- resolveWith(candidateValue: string, themeKeys: ThemeKey[], nestedKeys?: `--${string}`[]): [string, Record<string, string>] | null;
30
- namespace(namespace: string): Map<string | null, string>;
31
- }
32
- type ThemeKey = '--accent-color' | '--animate' | '--aspect-ratio' | '--backdrop-blur' | '--backdrop-brightness' | '--backdrop-contrast' | '--backdrop-grayscale' | '--backdrop-hue-rotate' | '--backdrop-invert' | '--backdrop-opacity' | '--backdrop-saturate' | '--backdrop-sepia' | '--background-color' | '--background-image' | '--blur' | '--border-color' | '--border-spacing' | '--border-width' | '--box-shadow-color' | '--breakpoint' | '--brightness' | '--caret-color' | '--color' | '--columns' | '--contrast' | '--cursor' | '--default-border-width' | '--default-ring-color' | '--default-ring-width' | '--divide-width' | '--divide-color' | '--drop-shadow' | '--fill' | '--flex-basis' | '--font-family' | '--font-size' | '--font-weight' | '--gap' | '--gradient-color-stop-positions' | '--grayscale' | '--grid-auto-columns' | '--grid-auto-rows' | '--grid-column' | '--grid-column-end' | '--grid-column-start' | '--grid-row' | '--grid-row-end' | '--grid-row-start' | '--grid-template-columns' | '--grid-template-rows' | '--height' | '--hue-rotate' | '--inset' | '--inset-shadow' | '--invert' | '--letter-spacing' | '--line-height' | '--line-clamp' | '--list-style-image' | '--list-style-type' | '--margin' | '--max-height' | '--max-width' | '--min-height' | '--min-width' | '--object-position' | '--opacity' | '--order' | '--outline-color' | '--outline-width' | '--outline-offset' | '--padding' | '--placeholder-color' | '--radius' | '--ring-color' | '--ring-offset-color' | '--ring-offset-width' | '--ring-width' | '--rotate' | '--saturate' | '--scale' | '--scroll-margin' | '--scroll-padding' | '--sepia' | '--shadow' | '--size' | '--skew' | '--space' | '--spacing' | '--stroke' | '--stroke-width' | '--text-color' | '--text-decoration-color' | '--text-decoration-thickness' | '--text-indent' | '--text-underline-offset' | '--transform-origin' | '--transition-delay' | '--transition-duration' | '--transition-property' | '--transition-timing-function' | '--translate' | '--width' | '--z-index';
33
-
34
- type Rule = {
35
- kind: 'rule';
36
- selector: string;
37
- nodes: AstNode[];
38
- };
39
- type Declaration = {
40
- kind: 'declaration';
41
- property: string;
42
- value: string;
43
- important: boolean;
44
- };
45
- type Comment = {
46
- kind: 'comment';
47
- value: string;
48
- };
49
- type AstNode = Rule | Declaration | Comment;
50
-
51
1
  type ArbitraryUtilityValue = {
52
2
  kind: 'arbitrary';
53
3
  /**
@@ -222,37 +172,42 @@ type Candidate =
222
172
  negative: boolean;
223
173
  important: boolean;
224
174
  };
175
+ declare function parseCandidate(input: string, designSystem: DesignSystem): Candidate | null;
176
+ declare function parseVariant(variant: string, designSystem: DesignSystem): Variant | null;
225
177
 
226
- type CompileFn<T extends Candidate['kind']> = (value: Extract<Candidate, {
227
- kind: T;
228
- }>) => AstNode[] | undefined;
229
- interface SuggestionGroup {
230
- supportsNegative?: boolean;
231
- values: (string | null)[];
232
- modifiers: string[];
233
- }
234
- declare class Utilities {
235
- private utilities;
236
- private completions;
237
- static(name: string, compileFn: CompileFn<'static'>): void;
238
- functional(name: string, compileFn: CompileFn<'functional'>): void;
239
- arbitrary(compileFn: CompileFn<'arbitrary'>): void;
240
- has(name: string): boolean;
241
- get(name: string | symbol): {
242
- kind: "arbitrary" | "static" | "functional";
243
- compileFn: CompileFn<any>;
244
- } | undefined;
245
- kind(name: string): "arbitrary" | "static" | "functional";
246
- getCompletions(name: string): SuggestionGroup[];
247
- suggest(name: string, groups: () => SuggestionGroup[]): void;
248
- keys(): IterableIterator<string | symbol>;
249
- entries(): IterableIterator<[string | symbol, {
250
- kind: "arbitrary" | "static" | "functional";
251
- compileFn: CompileFn<any>;
252
- }]>;
253
- getArbitrary(): CompileFn<any>;
254
- private set;
178
+ type Rule = {
179
+ kind: 'rule';
180
+ selector: string;
181
+ nodes: AstNode[];
182
+ };
183
+ type Declaration = {
184
+ kind: 'declaration';
185
+ property: string;
186
+ value: string;
187
+ important: boolean;
188
+ };
189
+ type Comment = {
190
+ kind: 'comment';
191
+ value: string;
192
+ };
193
+ type AstNode = Rule | Declaration | Comment;
194
+
195
+ declare class Theme {
196
+ private values;
197
+ constructor(values?: Map<string, string>);
198
+ add(key: string, value: string): void;
199
+ keysInNamespaces(themeKeys: ThemeKey[]): string[];
200
+ get(themeKeys: ThemeKey[]): string | null;
201
+ entries(): IterableIterator<[string, string]>;
202
+ clearNamespace(namespace: string): void;
203
+ resolveKey(candidateValue: string, themeKeys: ThemeKey[]): string | null;
204
+ var(themeKey: string): string | null;
205
+ resolve(candidateValue: string, themeKeys: ThemeKey[]): string | null;
206
+ resolveBare(candidateValue: string, themeKeys: ThemeKey[]): string | null;
207
+ resolveWith(candidateValue: string, themeKeys: ThemeKey[], nestedKeys?: `--${string}`[]): [string, Record<string, string>] | null;
208
+ namespace(namespace: string): Map<string | null, string>;
255
209
  }
210
+ type ThemeKey = '--accent-color' | '--animate' | '--aspect-ratio' | '--backdrop-blur' | '--backdrop-brightness' | '--backdrop-contrast' | '--backdrop-grayscale' | '--backdrop-hue-rotate' | '--backdrop-invert' | '--backdrop-opacity' | '--backdrop-saturate' | '--backdrop-sepia' | '--background-color' | '--background-image' | '--blur' | '--border-color' | '--border-spacing' | '--border-width' | '--box-shadow-color' | '--breakpoint' | '--brightness' | '--caret-color' | '--color' | '--columns' | '--contrast' | '--cursor' | '--default-border-width' | '--default-ring-color' | '--default-ring-width' | '--divide-width' | '--divide-color' | '--drop-shadow' | '--fill' | '--flex-basis' | '--font-family' | '--font-size' | '--font-weight' | '--gap' | '--gradient-color-stop-positions' | '--grayscale' | '--grid-auto-columns' | '--grid-auto-rows' | '--grid-column' | '--grid-column-end' | '--grid-column-start' | '--grid-row' | '--grid-row-end' | '--grid-row-start' | '--grid-template-columns' | '--grid-template-rows' | '--height' | '--hue-rotate' | '--inset' | '--inset-shadow' | '--invert' | '--letter-spacing' | '--line-height' | '--line-clamp' | '--list-style-image' | '--list-style-type' | '--margin' | '--max-height' | '--max-width' | '--min-height' | '--min-width' | '--object-position' | '--opacity' | '--order' | '--outline-color' | '--outline-width' | '--outline-offset' | '--padding' | '--placeholder-color' | '--radius' | '--ring-color' | '--ring-offset-color' | '--ring-offset-width' | '--ring-width' | '--rotate' | '--saturate' | '--scale' | '--scroll-margin' | '--scroll-padding' | '--sepia' | '--shadow' | '--size' | '--skew' | '--space' | '--spacing' | '--stroke' | '--stroke-width' | '--text-color' | '--text-decoration-color' | '--text-decoration-thickness' | '--text-indent' | '--text-underline-offset' | '--transform-origin' | '--transition-delay' | '--transition-duration' | '--transition-property' | '--transition-timing-function' | '--translate' | '--width' | '--z-index';
256
211
 
257
212
  type VariantFn<T extends Variant['kind']> = (rule: Rule, variant: Extract<Variant, {
258
213
  kind: T;
@@ -306,6 +261,58 @@ declare class Variants {
306
261
  private nextOrder;
307
262
  }
308
263
 
264
+ declare function compileAstNodes(rawCandidate: string, designSystem: DesignSystem): {
265
+ node: Rule;
266
+ propertySort: number[];
267
+ } | null;
268
+
269
+ interface ClassMetadata {
270
+ modifiers: string[];
271
+ }
272
+ type ClassEntry = [string, ClassMetadata];
273
+ interface SelectorOptions {
274
+ modifier?: string;
275
+ value?: string;
276
+ }
277
+ interface VariantEntry {
278
+ name: string;
279
+ isArbitrary: boolean;
280
+ values: string[];
281
+ hasDash: boolean;
282
+ selectors: (options: SelectorOptions) => string[];
283
+ }
284
+
285
+ type CompileFn<T extends Candidate['kind']> = (value: Extract<Candidate, {
286
+ kind: T;
287
+ }>) => AstNode[] | undefined;
288
+ interface SuggestionGroup {
289
+ supportsNegative?: boolean;
290
+ values: (string | null)[];
291
+ modifiers: string[];
292
+ }
293
+ declare class Utilities {
294
+ private utilities;
295
+ private completions;
296
+ static(name: string, compileFn: CompileFn<'static'>): void;
297
+ functional(name: string, compileFn: CompileFn<'functional'>): void;
298
+ arbitrary(compileFn: CompileFn<'arbitrary'>): void;
299
+ has(name: string): boolean;
300
+ get(name: string | symbol): {
301
+ kind: "arbitrary" | "static" | "functional";
302
+ compileFn: CompileFn<any>;
303
+ } | undefined;
304
+ kind(name: string): "arbitrary" | "static" | "functional";
305
+ getCompletions(name: string): SuggestionGroup[];
306
+ suggest(name: string, groups: () => SuggestionGroup[]): void;
307
+ keys(): IterableIterator<string | symbol>;
308
+ entries(): IterableIterator<[string | symbol, {
309
+ kind: "arbitrary" | "static" | "functional";
310
+ compileFn: CompileFn<any>;
311
+ }]>;
312
+ getArbitrary(): CompileFn<any>;
313
+ private set;
314
+ }
315
+
309
316
  type DesignSystem = {
310
317
  theme: Theme;
311
318
  utilities: Utilities;
@@ -314,9 +321,15 @@ type DesignSystem = {
314
321
  getClassOrder(classes: string[]): [string, bigint | null][];
315
322
  getClassList(): ClassEntry[];
316
323
  getVariants(): VariantEntry[];
324
+ parseCandidate(candidate: string): ReturnType<typeof parseCandidate>;
325
+ parseVariant(variant: string): ReturnType<typeof parseVariant>;
326
+ compileAstNodes(candidate: string): ReturnType<typeof compileAstNodes>;
327
+ getUsedVariants(): ReturnType<typeof parseVariant>[];
317
328
  };
318
329
 
319
- declare function compile(css: string, rawCandidates: string[]): string;
330
+ declare function compile(css: string): {
331
+ build(candidates: string[]): string;
332
+ };
320
333
  declare function optimizeCss(input: string, { file, minify }?: {
321
334
  file?: string;
322
335
  minify?: boolean;
package/dist/lib.d.ts CHANGED
@@ -1,53 +1,3 @@
1
- interface ClassMetadata {
2
- modifiers: string[];
3
- }
4
- type ClassEntry = [string, ClassMetadata];
5
- interface SelectorOptions {
6
- modifier?: string;
7
- value?: string;
8
- }
9
- interface VariantEntry {
10
- name: string;
11
- isArbitrary: boolean;
12
- values: string[];
13
- hasDash: boolean;
14
- selectors: (options: SelectorOptions) => string[];
15
- }
16
-
17
- declare class Theme {
18
- private values;
19
- constructor(values?: Map<string, string>);
20
- add(key: string, value: string): void;
21
- keysInNamespaces(themeKeys: ThemeKey[]): string[];
22
- get(themeKeys: ThemeKey[]): string | null;
23
- entries(): IterableIterator<[string, string]>;
24
- clearNamespace(namespace: string): void;
25
- resolveKey(candidateValue: string, themeKeys: ThemeKey[]): string | null;
26
- var(themeKey: string): string | null;
27
- resolve(candidateValue: string, themeKeys: ThemeKey[]): string | null;
28
- resolveBare(candidateValue: string, themeKeys: ThemeKey[]): string | null;
29
- resolveWith(candidateValue: string, themeKeys: ThemeKey[], nestedKeys?: `--${string}`[]): [string, Record<string, string>] | null;
30
- namespace(namespace: string): Map<string | null, string>;
31
- }
32
- type ThemeKey = '--accent-color' | '--animate' | '--aspect-ratio' | '--backdrop-blur' | '--backdrop-brightness' | '--backdrop-contrast' | '--backdrop-grayscale' | '--backdrop-hue-rotate' | '--backdrop-invert' | '--backdrop-opacity' | '--backdrop-saturate' | '--backdrop-sepia' | '--background-color' | '--background-image' | '--blur' | '--border-color' | '--border-spacing' | '--border-width' | '--box-shadow-color' | '--breakpoint' | '--brightness' | '--caret-color' | '--color' | '--columns' | '--contrast' | '--cursor' | '--default-border-width' | '--default-ring-color' | '--default-ring-width' | '--divide-width' | '--divide-color' | '--drop-shadow' | '--fill' | '--flex-basis' | '--font-family' | '--font-size' | '--font-weight' | '--gap' | '--gradient-color-stop-positions' | '--grayscale' | '--grid-auto-columns' | '--grid-auto-rows' | '--grid-column' | '--grid-column-end' | '--grid-column-start' | '--grid-row' | '--grid-row-end' | '--grid-row-start' | '--grid-template-columns' | '--grid-template-rows' | '--height' | '--hue-rotate' | '--inset' | '--inset-shadow' | '--invert' | '--letter-spacing' | '--line-height' | '--line-clamp' | '--list-style-image' | '--list-style-type' | '--margin' | '--max-height' | '--max-width' | '--min-height' | '--min-width' | '--object-position' | '--opacity' | '--order' | '--outline-color' | '--outline-width' | '--outline-offset' | '--padding' | '--placeholder-color' | '--radius' | '--ring-color' | '--ring-offset-color' | '--ring-offset-width' | '--ring-width' | '--rotate' | '--saturate' | '--scale' | '--scroll-margin' | '--scroll-padding' | '--sepia' | '--shadow' | '--size' | '--skew' | '--space' | '--spacing' | '--stroke' | '--stroke-width' | '--text-color' | '--text-decoration-color' | '--text-decoration-thickness' | '--text-indent' | '--text-underline-offset' | '--transform-origin' | '--transition-delay' | '--transition-duration' | '--transition-property' | '--transition-timing-function' | '--translate' | '--width' | '--z-index';
33
-
34
- type Rule = {
35
- kind: 'rule';
36
- selector: string;
37
- nodes: AstNode[];
38
- };
39
- type Declaration = {
40
- kind: 'declaration';
41
- property: string;
42
- value: string;
43
- important: boolean;
44
- };
45
- type Comment = {
46
- kind: 'comment';
47
- value: string;
48
- };
49
- type AstNode = Rule | Declaration | Comment;
50
-
51
1
  type ArbitraryUtilityValue = {
52
2
  kind: 'arbitrary';
53
3
  /**
@@ -222,37 +172,42 @@ type Candidate =
222
172
  negative: boolean;
223
173
  important: boolean;
224
174
  };
175
+ declare function parseCandidate(input: string, designSystem: DesignSystem): Candidate | null;
176
+ declare function parseVariant(variant: string, designSystem: DesignSystem): Variant | null;
225
177
 
226
- type CompileFn<T extends Candidate['kind']> = (value: Extract<Candidate, {
227
- kind: T;
228
- }>) => AstNode[] | undefined;
229
- interface SuggestionGroup {
230
- supportsNegative?: boolean;
231
- values: (string | null)[];
232
- modifiers: string[];
233
- }
234
- declare class Utilities {
235
- private utilities;
236
- private completions;
237
- static(name: string, compileFn: CompileFn<'static'>): void;
238
- functional(name: string, compileFn: CompileFn<'functional'>): void;
239
- arbitrary(compileFn: CompileFn<'arbitrary'>): void;
240
- has(name: string): boolean;
241
- get(name: string | symbol): {
242
- kind: "arbitrary" | "static" | "functional";
243
- compileFn: CompileFn<any>;
244
- } | undefined;
245
- kind(name: string): "arbitrary" | "static" | "functional";
246
- getCompletions(name: string): SuggestionGroup[];
247
- suggest(name: string, groups: () => SuggestionGroup[]): void;
248
- keys(): IterableIterator<string | symbol>;
249
- entries(): IterableIterator<[string | symbol, {
250
- kind: "arbitrary" | "static" | "functional";
251
- compileFn: CompileFn<any>;
252
- }]>;
253
- getArbitrary(): CompileFn<any>;
254
- private set;
178
+ type Rule = {
179
+ kind: 'rule';
180
+ selector: string;
181
+ nodes: AstNode[];
182
+ };
183
+ type Declaration = {
184
+ kind: 'declaration';
185
+ property: string;
186
+ value: string;
187
+ important: boolean;
188
+ };
189
+ type Comment = {
190
+ kind: 'comment';
191
+ value: string;
192
+ };
193
+ type AstNode = Rule | Declaration | Comment;
194
+
195
+ declare class Theme {
196
+ private values;
197
+ constructor(values?: Map<string, string>);
198
+ add(key: string, value: string): void;
199
+ keysInNamespaces(themeKeys: ThemeKey[]): string[];
200
+ get(themeKeys: ThemeKey[]): string | null;
201
+ entries(): IterableIterator<[string, string]>;
202
+ clearNamespace(namespace: string): void;
203
+ resolveKey(candidateValue: string, themeKeys: ThemeKey[]): string | null;
204
+ var(themeKey: string): string | null;
205
+ resolve(candidateValue: string, themeKeys: ThemeKey[]): string | null;
206
+ resolveBare(candidateValue: string, themeKeys: ThemeKey[]): string | null;
207
+ resolveWith(candidateValue: string, themeKeys: ThemeKey[], nestedKeys?: `--${string}`[]): [string, Record<string, string>] | null;
208
+ namespace(namespace: string): Map<string | null, string>;
255
209
  }
210
+ type ThemeKey = '--accent-color' | '--animate' | '--aspect-ratio' | '--backdrop-blur' | '--backdrop-brightness' | '--backdrop-contrast' | '--backdrop-grayscale' | '--backdrop-hue-rotate' | '--backdrop-invert' | '--backdrop-opacity' | '--backdrop-saturate' | '--backdrop-sepia' | '--background-color' | '--background-image' | '--blur' | '--border-color' | '--border-spacing' | '--border-width' | '--box-shadow-color' | '--breakpoint' | '--brightness' | '--caret-color' | '--color' | '--columns' | '--contrast' | '--cursor' | '--default-border-width' | '--default-ring-color' | '--default-ring-width' | '--divide-width' | '--divide-color' | '--drop-shadow' | '--fill' | '--flex-basis' | '--font-family' | '--font-size' | '--font-weight' | '--gap' | '--gradient-color-stop-positions' | '--grayscale' | '--grid-auto-columns' | '--grid-auto-rows' | '--grid-column' | '--grid-column-end' | '--grid-column-start' | '--grid-row' | '--grid-row-end' | '--grid-row-start' | '--grid-template-columns' | '--grid-template-rows' | '--height' | '--hue-rotate' | '--inset' | '--inset-shadow' | '--invert' | '--letter-spacing' | '--line-height' | '--line-clamp' | '--list-style-image' | '--list-style-type' | '--margin' | '--max-height' | '--max-width' | '--min-height' | '--min-width' | '--object-position' | '--opacity' | '--order' | '--outline-color' | '--outline-width' | '--outline-offset' | '--padding' | '--placeholder-color' | '--radius' | '--ring-color' | '--ring-offset-color' | '--ring-offset-width' | '--ring-width' | '--rotate' | '--saturate' | '--scale' | '--scroll-margin' | '--scroll-padding' | '--sepia' | '--shadow' | '--size' | '--skew' | '--space' | '--spacing' | '--stroke' | '--stroke-width' | '--text-color' | '--text-decoration-color' | '--text-decoration-thickness' | '--text-indent' | '--text-underline-offset' | '--transform-origin' | '--transition-delay' | '--transition-duration' | '--transition-property' | '--transition-timing-function' | '--translate' | '--width' | '--z-index';
256
211
 
257
212
  type VariantFn<T extends Variant['kind']> = (rule: Rule, variant: Extract<Variant, {
258
213
  kind: T;
@@ -306,6 +261,58 @@ declare class Variants {
306
261
  private nextOrder;
307
262
  }
308
263
 
264
+ declare function compileAstNodes(rawCandidate: string, designSystem: DesignSystem): {
265
+ node: Rule;
266
+ propertySort: number[];
267
+ } | null;
268
+
269
+ interface ClassMetadata {
270
+ modifiers: string[];
271
+ }
272
+ type ClassEntry = [string, ClassMetadata];
273
+ interface SelectorOptions {
274
+ modifier?: string;
275
+ value?: string;
276
+ }
277
+ interface VariantEntry {
278
+ name: string;
279
+ isArbitrary: boolean;
280
+ values: string[];
281
+ hasDash: boolean;
282
+ selectors: (options: SelectorOptions) => string[];
283
+ }
284
+
285
+ type CompileFn<T extends Candidate['kind']> = (value: Extract<Candidate, {
286
+ kind: T;
287
+ }>) => AstNode[] | undefined;
288
+ interface SuggestionGroup {
289
+ supportsNegative?: boolean;
290
+ values: (string | null)[];
291
+ modifiers: string[];
292
+ }
293
+ declare class Utilities {
294
+ private utilities;
295
+ private completions;
296
+ static(name: string, compileFn: CompileFn<'static'>): void;
297
+ functional(name: string, compileFn: CompileFn<'functional'>): void;
298
+ arbitrary(compileFn: CompileFn<'arbitrary'>): void;
299
+ has(name: string): boolean;
300
+ get(name: string | symbol): {
301
+ kind: "arbitrary" | "static" | "functional";
302
+ compileFn: CompileFn<any>;
303
+ } | undefined;
304
+ kind(name: string): "arbitrary" | "static" | "functional";
305
+ getCompletions(name: string): SuggestionGroup[];
306
+ suggest(name: string, groups: () => SuggestionGroup[]): void;
307
+ keys(): IterableIterator<string | symbol>;
308
+ entries(): IterableIterator<[string | symbol, {
309
+ kind: "arbitrary" | "static" | "functional";
310
+ compileFn: CompileFn<any>;
311
+ }]>;
312
+ getArbitrary(): CompileFn<any>;
313
+ private set;
314
+ }
315
+
309
316
  type DesignSystem = {
310
317
  theme: Theme;
311
318
  utilities: Utilities;
@@ -314,9 +321,15 @@ type DesignSystem = {
314
321
  getClassOrder(classes: string[]): [string, bigint | null][];
315
322
  getClassList(): ClassEntry[];
316
323
  getVariants(): VariantEntry[];
324
+ parseCandidate(candidate: string): ReturnType<typeof parseCandidate>;
325
+ parseVariant(variant: string): ReturnType<typeof parseVariant>;
326
+ compileAstNodes(candidate: string): ReturnType<typeof compileAstNodes>;
327
+ getUsedVariants(): ReturnType<typeof parseVariant>[];
317
328
  };
318
329
 
319
- declare function compile(css: string, rawCandidates: string[]): string;
330
+ declare function compile(css: string): {
331
+ build(candidates: string[]): string;
332
+ };
320
333
  declare function optimizeCss(input: string, { file, minify }?: {
321
334
  file?: string;
322
335
  minify?: boolean;