/// import type { CssFunction } from '../types'; type WithConditionalCSSProp = 'className' extends keyof TProps ? string extends TProps['className' & keyof TProps] ? { /** * ## CSS prop * * Style a JSX element. * For further details [read the API documentation](https://compiledcssinjs.com/docs/api-css-prop). * * ### Style with objects * * @example * ``` * import { css } from '@compiled/react'; * *
* ``` * * ### Style with template literals * * @example * ``` * import { css } from '@compiled/react'; * *
* ``` * * ### Compose styles with arrays * * @example * ``` * import { css } from '@compiled/react'; * *
* ``` */ css?: CssFunction | CssFunction[]; } : {} : {}; type ReactJSXElementType = string | React.JSXElementConstructor; type ReactJSXElement = JSX.Element; type ReactJSXElementClass = JSX.ElementClass; type ReactJSXElementAttributesProperty = JSX.ElementAttributesProperty; type ReactJSXElementChildrenAttribute = JSX.ElementChildrenAttribute; type ReactJSXIntrinsicAttributes = JSX.IntrinsicAttributes; type ReactJSXIntrinsicClassAttributes = JSX.IntrinsicClassAttributes; type ReactJSXIntrinsicElements = JSX.IntrinsicElements; export declare namespace CompiledJSX { type ElementType = ReactJSXElementType; type Element = ReactJSXElement; type ElementClass = ReactJSXElementClass; type ElementAttributesProperty = ReactJSXElementAttributesProperty; type ElementChildrenAttribute = ReactJSXElementChildrenAttribute; type LibraryManagedAttributes<_C, P> = WithConditionalCSSProp

& P & { key?: React.Key; }; type IntrinsicAttributes = ReactJSXIntrinsicAttributes; type IntrinsicClassAttributes = ReactJSXIntrinsicClassAttributes; type IntrinsicElements = { [K in keyof ReactJSXIntrinsicElements]: Omit & { /** * The class name prop now can be given the output of xcss prop from `@compiled/react`. */ className?: string | Record | null | false; css?: CssFunction | CssFunction[]; }; }; } export {};