1 |
|
2 |
|
3 | import { EmotionCache } from "./@emotion-cache-types-index";
|
4 | import { ArrayInterpolation, ComponentSelector, CSSInterpolation, CSSObject, FunctionInterpolation, Interpolation, Keyframes, SerializedStyles } from "./@emotion-react-node_modules-@emotion-serialize-types-index";
|
5 | import { ClassAttributes, Context, Provider, FC, ReactElement, ReactNode, Ref, createElement } from 'react';
|
6 | import { EmotionJSX } from "./@emotion-react-types-jsx-namespace";
|
7 | export { ArrayInterpolation, ComponentSelector, CSSObject, EmotionCache, FunctionInterpolation, Interpolation, Keyframes, SerializedStyles };
|
8 | export * from "./@emotion-react-types-theming";
|
9 | export * from "./@emotion-react-types-helper";
|
10 |
|
11 | export interface Theme {
|
12 | }
|
13 | export const ThemeContext: Context<object>;
|
14 | export const CacheProvider: Provider<EmotionCache>;
|
15 | export function withEmotionCache<Props, RefType = any>(func: (props: Props, context: EmotionCache, ref: Ref<RefType>) => ReactNode): FC<Props & ClassAttributes<RefType>>;
|
16 | export function css(template: TemplateStringsArray, ...args: Array<CSSInterpolation>): SerializedStyles;
|
17 | export function css(...args: Array<CSSInterpolation>): SerializedStyles;
|
18 | export interface GlobalProps {
|
19 | styles: Interpolation<Theme>;
|
20 | }
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export function Global(props: GlobalProps): ReactElement;
|
26 | export function keyframes(template: TemplateStringsArray, ...args: Array<CSSInterpolation>): Keyframes;
|
27 | export function keyframes(...args: Array<CSSInterpolation>): Keyframes;
|
28 | export interface ArrayClassNamesArg extends Array<ClassNamesArg> {
|
29 | }
|
30 | export type ClassNamesArg = undefined | null | string | boolean | {
|
31 | [className: string]: boolean | null | undefined;
|
32 | } | ArrayClassNamesArg;
|
33 | export interface ClassNamesContent {
|
34 | css(template: TemplateStringsArray, ...args: Array<CSSInterpolation>): string;
|
35 | css(...args: Array<CSSInterpolation>): string;
|
36 | cx(...args: Array<ClassNamesArg>): string;
|
37 | theme: Theme;
|
38 | }
|
39 | export interface ClassNamesProps {
|
40 | children(content: ClassNamesContent): ReactNode;
|
41 | }
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | export function ClassNames(props: ClassNamesProps): ReactElement;
|
47 | export const jsx: typeof createElement;
|
48 | export namespace jsx {
|
49 | namespace JSX {
|
50 | interface Element extends EmotionJSX.Element {
|
51 | }
|
52 | interface ElementClass extends EmotionJSX.ElementClass {
|
53 | }
|
54 | interface ElementAttributesProperty extends EmotionJSX.ElementAttributesProperty {
|
55 | }
|
56 | interface ElementChildrenAttribute extends EmotionJSX.ElementChildrenAttribute {
|
57 | }
|
58 | type LibraryManagedAttributes<C, P> = EmotionJSX.LibraryManagedAttributes<C, P>;
|
59 | interface IntrinsicAttributes extends EmotionJSX.IntrinsicAttributes {
|
60 | }
|
61 | interface IntrinsicClassAttributes<T> extends EmotionJSX.IntrinsicClassAttributes<T> {
|
62 | }
|
63 | type IntrinsicElements = EmotionJSX.IntrinsicElements;
|
64 | }
|
65 | } |
\ | No newline at end of file |