import { ReactNode, ComponentType, ComponentProps, AllHTMLAttributes, JSX } from 'react'; export type AllTags = keyof JSX.IntrinsicElements; type HTMLTransform = { [tag in AllTags]: AllTags | ComponentType, 'ref'>>; }; type DefaultTransform = { _: >(element: string | AllTags, props?: Props, children?: ReactNode) => ReactNode; }; type CustomElementTransform = { [key in `${string}-${string}`]: AllTags | ComponentType; }; export type HtmrOptions = { transform: Partial; preserveAttributes: Array; /** An array of tags in which their children should be set as raw html */ dangerouslySetChildren: AllTags[]; }; export {};