import { createElement } from 'react'; import type { CompiledJSX } from './jsx/jsx-local-namespace'; import type { CssFunction, CSSProps, CssType } from './types'; export type { CSSProps, CssFunction, CssType }; export { keyframes } from './keyframes'; export { styled } from './styled'; export { ClassNames } from './class-names'; export { default as css } from './css'; // Pass through the (classic) jsx runtime. // Compiled currently doesn't define its own and uses this purely to enable a local jsx namespace. export const jsx = createElement; export namespace jsx { export namespace JSX { export type Element = CompiledJSX.Element; export type ElementClass = CompiledJSX.ElementClass; export type ElementAttributesProperty = CompiledJSX.ElementAttributesProperty; export type ElementChildrenAttribute = CompiledJSX.ElementChildrenAttribute; export type LibraryManagedAttributes = CompiledJSX.LibraryManagedAttributes; export type IntrinsicAttributes = CompiledJSX.IntrinsicAttributes; export type IntrinsicClassAttributes = CompiledJSX.IntrinsicClassAttributes; export type IntrinsicElements = CompiledJSX.IntrinsicElements; } }