import "react"; // issue: https://github.com/floating-ui/floating-ui/issues/2507 // import type {} from "@floating-ui/react-dom"; type Merge = Omit & U; type PropsWithAs = P & { as?: T }; export type PolymorphicPropsWithRef = Merge< T extends keyof JSX.IntrinsicElements ? React.PropsWithRef : React.ComponentPropsWithRef, PropsWithAs >; declare global { interface GlobalEventHandlersEventMap { "contextmenu-custom": CustomEvent; } } declare module "react" { interface CSSProperties { [key: `--${string}`]: string | number; } }