1 | /**
|
2 | * This function is used to mark string literals representing CSS class names
|
3 | * so that they can be transformed statically. This allows for modularization
|
4 | * and minification of CSS class names.
|
5 | *
|
6 | * In static_upstream, this function is actually implemented, but it should
|
7 | * eventually be replaced with something more descriptive, and the transform
|
8 | * that is used in the main stack should be ported for use elsewhere.
|
9 | *
|
10 | * @param string|object className to modularize, or an object of key/values.
|
11 | * In the object case, the values are conditions that
|
12 | * determine if the className keys should be included.
|
13 | * @param [string ...] Variable list of classNames in the string case.
|
14 | * @return string Renderable space-separated CSS className.
|
15 | */
|
16 | declare function cx(classNames: string | string[] | object): string;
|
17 |
|
18 | declare namespace cx {}
|
19 |
|
20 | export = cx;
|