/* eslint-disable react/display-name */ import React from "react"; type Variants = {[K: string]: {[P: string]: string}}; type StringToBoolean = T extends "true" | "false" ? boolean : T; type StylesProps = { [K in keyof V]?: StringToBoolean; } & { variants: V; [x: string]: any; }; type ComponentType

= React.ComponentType

| React.ForwardRefExoticComponent

; export function extendStyles

( Component: ComponentType>, styles: {variants: P}, ) { return React.forwardRef>((props, ref) => { return ; }); }