UNPKG

4.38 kBTypeScriptView Raw
1import { IStyleSet, IConcatenatedStyleSet } from './IStyleSet';
2import { ObjectOnly } from './ObjectOnly';
3/**
4 * Combine a set of styles together (but does not register css classes).
5 * @param styleSet - The first style set to be concatenated.
6 */
7export declare function concatStyleSets<TStyleSet>(styleSet: TStyleSet | false | null | undefined): IConcatenatedStyleSet<ObjectOnly<TStyleSet>>;
8/**
9 * Combine a set of styles together (but does not register css classes).
10 * @param styleSet1 - The first style set to be concatenated.
11 * @param styleSet2 - The second style set to be concatenated.
12 */
13export declare function concatStyleSets<TStyleSet1, TStyleSet2>(styleSet1: TStyleSet1 | false | null | undefined, styleSet2: TStyleSet2 | false | null | undefined): IConcatenatedStyleSet<ObjectOnly<TStyleSet1> & ObjectOnly<TStyleSet2>>;
14/**
15 * Combine a set of styles together (but does not register css classes).
16 * @param styleSet1 - The first style set to be concatenated.
17 * @param styleSet2 - The second style set to be concatenated.
18 * @param styleSet3 - The third style set to be concatenated.
19 */
20export declare function concatStyleSets<TStyleSet1, TStyleSet2, TStyleSet3>(styleSet1: TStyleSet1 | false | null | undefined, styleSet2: TStyleSet2 | false | null | undefined, styleSet3: TStyleSet3 | false | null | undefined): IConcatenatedStyleSet<ObjectOnly<TStyleSet1> & ObjectOnly<TStyleSet2> & ObjectOnly<TStyleSet3>>;
21/**
22 * Combine a set of styles together (but does not register css classes).
23 * @param styleSet1 - The first style set to be concatenated.
24 * @param styleSet2 - The second style set to be concatenated.
25 * @param styleSet3 - The third style set to be concatenated.
26 * @param styleSet4 - The fourth style set to be concatenated.
27 */
28export declare function concatStyleSets<TStyleSet1, TStyleSet2, TStyleSet3, TStyleSet4>(styleSet1: TStyleSet1 | false | null | undefined, styleSet2: TStyleSet2 | false | null | undefined, styleSet3: TStyleSet3 | false | null | undefined, styleSet4: TStyleSet4 | false | null | undefined): IConcatenatedStyleSet<ObjectOnly<TStyleSet1> & ObjectOnly<TStyleSet2> & ObjectOnly<TStyleSet3> & ObjectOnly<TStyleSet4>>;
29/**
30 * Combine a set of styles together (but does not register css classes).
31 * @param styleSet1 - The first style set to be concatenated.
32 * @param styleSet2 - The second style set to be concatenated.
33 * @param styleSet3 - The third style set to be concatenated.
34 * @param styleSet4 - The fourth style set to be concatenated.
35 * @param styleSet5 - The fifth set to be concatenated.
36 */
37export declare function concatStyleSets<TStyleSet1, TStyleSet2, TStyleSet3, TStyleSet4, TStyleSet5>(styleSet1: TStyleSet1 | false | null | undefined, styleSet2: TStyleSet2 | false | null | undefined, styleSet3: TStyleSet3 | false | null | undefined, styleSet4: TStyleSet4 | false | null | undefined, styleSet5: TStyleSet5 | false | null | undefined): IConcatenatedStyleSet<ObjectOnly<TStyleSet1> & ObjectOnly<TStyleSet2> & ObjectOnly<TStyleSet3> & ObjectOnly<TStyleSet4> & ObjectOnly<TStyleSet5>>;
38/**
39 * Combine a set of styles together (but does not register css classes).
40 * @param styleSet1 - The first style set to be concatenated.
41 * @param styleSet2 - The second style set to be concatenated.
42 * @param styleSet3 - The third style set to be concatenated.
43 * @param styleSet4 - The fourth style set to be concatenated.
44 * @param styleSet5 - The fifth set to be concatenated.
45 * @param styleSet6 - The sixth set to be concatenated.
46 */
47export declare function concatStyleSets<TStyleSet1, TStyleSet2, TStyleSet3, TStyleSet4, TStyleSet5, TStyleSet6>(styleSet1: TStyleSet1 | false | null | undefined, styleSet2: TStyleSet2 | false | null | undefined, styleSet3: TStyleSet3 | false | null | undefined, styleSet4: TStyleSet4 | false | null | undefined, styleSet5: TStyleSet5 | false | null | undefined, styleSet6: TStyleSet6 | false | null | undefined): IConcatenatedStyleSet<ObjectOnly<TStyleSet1> & ObjectOnly<TStyleSet2> & ObjectOnly<TStyleSet3> & ObjectOnly<TStyleSet4> & ObjectOnly<TStyleSet5> & ObjectOnly<TStyleSet6>>;
48/**
49 * Combine a set of styles together (but does not register css classes).
50 * @param styleSets - One or more stylesets to be merged (each param can also be falsy).
51 */
52export declare function concatStyleSets(...styleSets: (IStyleSet | false | null | undefined)[]): IConcatenatedStyleSet<any>;