import { ComponentPropsWithRef, JSX, ReactElement } from 'react'; /** The name of any built-in HTML element. */ export type ElementType = keyof JSX.IntrinsicElements; /** Props common to every element, for a component that has not chosen one yet. */ export type ElementPropsWithoutEl = ComponentPropsWithRef; /** The props of element E, plus the `el` prop naming it. */ export type ElementProps = { el: E; } & ComponentPropsWithRef; /** {@link ElementProps} where the component supplies a default element. */ export type OptionalElementProps = { el?: E; } & ComponentPropsWithRef; /** * Renders the HTML element named by `el`, typed to that element's own props. It backs * every component that lets the caller pick its tag. */ export declare const Element: ({ el, children, ...rest }: ElementProps) => ReactElement; //# sourceMappingURL=Generic.d.ts.map