import { ComponentType } from 'react'; type StyledComponentProps = T extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[T] : T extends ComponentType ? P : never; type StyledComponent = React.FC>; type StyleTemplate = (strings: TemplateStringsArray) => StyledComponent; type StyledFn = { (name: T): StyleTemplate; (Component: StyledComponent): StyleTemplate; }; /** * Kuma UI's `styled` API allows you to create styled React components using tagged template literals. This makes it a familiar and comfortable choice for developers who have worked with libraries like styled-components or Emotion. */ declare const styled: StyledFn & { [T in keyof JSX.IntrinsicElements]: StyleTemplate; }; export { StyleTemplate, StyledComponent, StyledComponentProps, StyledFn, styled };