import { type ForwardRefExoticComponent, type HTMLAttributes, type PropsWithoutRef, type Ref, type RefAttributes } from 'react'; export type ComponentAttributes = Omit, 'children'>; export type ComponentProps = HTMLAttributes & P & { readonly ref?: Ref; }; type Ctor = { new (): T; }; export type WebComponent> = ForwardRefExoticComponent & P> & RefAttributes>; /** * Wraps a custom element as a React Component * * @param elementClass HTMLElement - Custom element to wrap * @param tag string - tag name which the element uses in DOM */ export declare const createComponent: >(elementClass: Ctor, tag: string, options?: { events?: Record; functions?: Set; displayName?: string; }) => WebComponent; export default createComponent; //# sourceMappingURL=create-element.d.ts.map