/** * 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. */ import { clsx } from "clsx"; import type { ClassProp, ClassValue, OmitUndefined, StringToBoolean } from "./types"; export type VariantProps any> = Omit[0]>, "class" | "className">; export type CxOptions = Parameters; export type CxReturn = ReturnType; export 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; export declare const cva: (base?: ClassValue, config?: Config) => (props?: Props) => string; export {};