/** * `cva` — forked from class-variance-authority (Apache-2.0, © Joe Bell), inlined * so `veryfront/chat` takes no external `class-variance-authority` dependency. * * The runtime is faithful to upstream; the types are narrowed to what the chat * UI primitives use. Private to the chat module — not a public export. * * @module react/components/ui/cva */ import { type ClassValue, clsx } from "../../../utils/clsx.js"; /** Re-export of the class joiner, matching upstream's `cx`. */ export declare const cx: typeof clsx; type VariantShape = Record>; type VariantSelection = { [K in keyof V]?: keyof V[K] | null | undefined; }; type CvaProps = VariantSelection & { class?: ClassValue; className?: ClassValue; }; interface CvaConfig { variants?: V; compoundVariants?: Array; }> & { class?: ClassValue; className?: ClassValue; }>; defaultVariants?: VariantSelection; } /** Extracts the variant props of a `cva` function, like upstream's helper. */ export type VariantProps any> = Omit[0]>, "class" | "className">; /** Build a class-name function from a base plus a variants config. */ export declare function cva(base?: ClassValue, config?: CvaConfig): (props?: CvaProps) => string; export {}; //# sourceMappingURL=cva.d.ts.map