import { ClassValue } from "clsx"; import { ComponentPropsWithoutRef, ElementType, ReactElement, ReactNode } from "react"; type StylableProps = { className?: string; }; /** * Represents a function which computes a style for given props. */ type PropsClassValue = (props: Props) => ClassValue; /** * Represents a styled component. */ type StyledComponent = T extends keyof JSX.IntrinsicElements ? (props: ComponentPropsWithoutRef) => ReactElement : (props: ComponentPropsWithoutRef) => ReactNode; /** * Create a styled version of a component, for consistency. * @param component A React component, or a string like 'div' or 'input' * @param classes Arguments to pass to `clsx` or a function to produce classes from the props */ export declare function styled>(component: T, ...classes: (ClassValue | PropsClassValue>)[]): StyledComponent; export {}; //# sourceMappingURL=styled.d.ts.map