import * as React from 'react'; import createFromIconfontCN from './IconFont'; import { getTwoToneColor, setTwoToneColor } from './twoTonePrimaryColor'; import { ConfigConsumerProps } from '../config-provider'; export interface TransferLocale { icon: string; } export interface CustomIconComponentProps { width: string | number; height: string | number; fill: string; viewBox?: string; className?: string; style?: React.CSSProperties; spin?: boolean; rotate?: number; ['aria-hidden']?: React.AriaAttributes['aria-hidden']; } export declare type ThemeType = 'filled' | 'outlined' | 'twoTone'; export interface IconProps { tabIndex?: number; type?: string; className?: string; theme?: ThemeType; title?: string; onKeyUp?: React.KeyboardEventHandler; onClick?: React.MouseEventHandler; component?: React.ComponentType>; twoToneColor?: string; viewBox?: string; spin?: boolean; rotate?: number; style?: React.CSSProperties; prefixCls?: string; role?: string; children?: React.ReactNode; } declare class Icon extends React.Component { static createFromIconfontCN: typeof createFromIconfontCN; static getTwoToneColor: typeof getTwoToneColor; static setTwoToneColor: typeof setTwoToneColor; static url: string; static getDerivedStateFromProps(nextProps: IconProps): { innerNode: {}; } | null; AntDesignIcons: any; state: { innerNode: null; }; isMount: boolean; url: string; loadIcons: () => any; componentWillUnmount(): void; componentDidMount(): void; getIconUrl: (csOrigin?: string | undefined) => string; renderIcon: ({ csOrigin }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default Icon;