/** * External dependencies */ import type { ComponentType, SVGProps } from 'react'; import type { IconKey as DashiconIconKey } from '../dashicon/types'; declare type IconType

= DashiconIconKey | ComponentType

| JSX.Element; interface BaseProps

{ /** * The icon to render. Supported values are: Dashicons (specified as * strings), functions, Component instances and `null`. * * @default null */ icon?: IconType

| null; /** * The size (width and height) of the icon. * * @default 24 */ size?: number; } declare type AdditionalProps = T extends ComponentType ? U : T extends DashiconIconKey ? SVGProps : {}; export declare type Props

= BaseProps

& AdditionalProps>; declare function Icon

({ icon, size, ...additionalProps }: Props

): JSX.Element | null; export default Icon; //# sourceMappingURL=index.d.ts.map