import * as React from 'react';
import { IconProps } from '@page-speed/icon';

type DynamicIconName = IconProps["name"] | React.ReactNode;
interface DynamicIconProps extends Omit<IconProps, "apiKey" | "name"> {
    name?: DynamicIconName;
    apiKey?: string;
}
/**
 * Compatibility wrapper for legacy DynamicIcon usage across opensite-ui.
 *
 * String names are forwarded to @page-speed/icon's Icon component with a
 * default API key. React nodes are rendered as-is for custom icon slots.
 */
declare const DynamicIcon: React.NamedExoticComponent<DynamicIconProps>;

export { DynamicIcon, type DynamicIconName, type DynamicIconProps };
