import { CxOptions, VariantProps, cva } from "class-variance-authority"; import React from "react"; import * as class_variance_authority_types0 from "class-variance-authority/types"; export * from "@udecode/react-utils"; //#region src/cn.d.ts /** Tailwind CSS classnames merge. */ declare function cn(...inputs: CxOptions): string; //#endregion //#region src/withCn.d.ts /** * Set default `className` with `cn`. */ declare function withCn>(Component: T, ...inputs: CxOptions): React.ForwardRefExoticComponent>> & React.RefAttributes>>; //#endregion //#region src/withProps.d.ts /** * Set default props with `React.forwardRef`. * * - Use `withCn` if only setting `className` */ declare function withProps(Component: T, defaultProps: Partial>): React.ForwardRefExoticComponent>> & React.RefAttributes>>; //#endregion //#region src/withVariants.d.ts /** * Set default `className` with `cn` and `variants`. * * @param Component - The component to which props will be added. * @param variants - Variants from `cva`. `Component` props will be extended * with `variants` props. * @param onlyVariantsProps - Props to exclude from `Component`. Set the props * that are only used for variants. */ declare function withVariants>(Component: T, variants: V, onlyVariantsProps?: (keyof VariantProps)[]): React.ForwardRefExoticComponent> & Omit, Exclude[0]>, "class" | "className">> & VariantProps> & React.RefAttributes>>; //#endregion export { cn, withCn, withProps, withVariants };