import { cva, VariantProps } from 'cva'; /** * cva's `ClassDictionary` is `Record`, which a function satisfies, * so a Base UI state-function `className` type-checked as a class value and was * then skipped at runtime. Every function has a `call` member, so forbidding * one here rejects functions while still admitting `{ "sr-only": hidden }`. */ type ClassDictionary = { [key: string]: unknown; call?: never; }; type ClassArray = ClassValue[]; type ClassValue = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined; declare function cx(...args: ClassValue[]): string | undefined; /** * `cx` for a Base UI part's `className`. The caller's value may be a function * of the part's state, which `cx` has no state to call, so this returns a * function for Base UI to call instead: it resolves any function argument with * the part's state, then merges everything in order as `cx` would. * * With no function among the arguments it returns the merged string, as `cx` * would. A function prop cannot cross from a server component into a client * one, so a part composed on the server must still receive a string. */ declare function cxState(...args: (ClassValue | ((state: State) => string | undefined))[]): string | ((state: State) => string | undefined) | undefined; export { cva, cx, cxState }; export type { VariantProps }; //# sourceMappingURL=cva.d.ts.map