import { RendererIcon } from './types'; interface VisibleIconProps { /** * Specify whether the icon should be hidden from screenreaders or not. Hidden by default. */ 'aria-hidden': false | 'false'; onClick: (e: React.UIEvent) => void; } interface HiddenIconProps { /** * Specify whether the icon should be hidden from screenreaders or not. Hidden by default. */ 'aria-hidden'?: true | 'true'; onClick?: (e: React.UIEvent) => void; } interface BaseIconProps { library?: 'font-awesome'; /** * Icon to display. */ icon: RendererIcon; /** * Optional extra class name to apply to the icon element. */ className?: string; /** * Accessible icon label in case the icon is not hidden to screen readers. */ 'aria-label'?: string; 'aria-describedby'?: string; 'aria-disabled'?: boolean | 'true' | 'false'; title?: string; } export type IconProps = BaseIconProps & (HiddenIconProps | VisibleIconProps); declare const Icon: import('react').ForwardRefExoticComponent>; export default Icon;