type ClassValue$1 = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined; type ClassDictionary = Record; type ClassArray = ClassValue$1[]; declare function clsx(...inputs: ClassValue$1[]): string; /** * Copyright 2022 Joe Bell. All rights reserved. * * This file is licensed to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ type ClassValue = ClassValue$1; type ClassProp = { class: ClassValue; className?: never; } | { class?: never; className: ClassValue; } | { class?: never; className?: never; }; type OmitUndefined = T extends undefined ? never : T; type StringToBoolean = T extends "true" | "false" ? boolean : T; /** * Copyright 2022 Joe Bell. All rights reserved. * * This file is licensed to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ type VariantProps any> = Omit[0]>, "class" | "className">; type CxOptions = Parameters; type CxReturn = ReturnType; declare const cx: typeof clsx; type ConfigSchema = Record>; type ConfigVariants = { [Variant in keyof T]?: StringToBoolean | null | undefined; }; type ConfigVariantsMulti = { [Variant in keyof T]?: StringToBoolean | StringToBoolean[] | undefined; }; type Config = T extends ConfigSchema ? { variants?: T; defaultVariants?: ConfigVariants; compoundVariants?: (T extends ConfigSchema ? (ConfigVariants | ConfigVariantsMulti) & ClassProp : ClassProp)[]; } : never; type Props = T extends ConfigSchema ? ConfigVariants & ClassProp : ClassProp; declare const cva: (base?: ClassValue, config?: Config) => (props?: Props) => string; export { cva, cx }; export type { CxOptions, CxReturn, VariantProps };