1 | import * as React from 'react';
|
2 | import type { IconDefinition } from '@ant-design/icons-svg/lib/types';
|
3 | export interface IconProps {
|
4 | icon: IconDefinition;
|
5 | className?: string;
|
6 | onClick?: React.MouseEventHandler<SVGSVGElement>;
|
7 | style?: React.CSSProperties;
|
8 | primaryColor?: string;
|
9 | secondaryColor?: string;
|
10 | focusable?: string;
|
11 | }
|
12 | export interface TwoToneColorPaletteSetter {
|
13 | primaryColor: string;
|
14 | secondaryColor?: string;
|
15 | }
|
16 | export interface TwoToneColorPalette extends TwoToneColorPaletteSetter {
|
17 | calculated?: boolean;
|
18 | }
|
19 | declare function setTwoToneColors({ primaryColor, secondaryColor }: TwoToneColorPaletteSetter): void;
|
20 | declare function getTwoToneColors(): TwoToneColorPalette;
|
21 | interface IconBaseComponent<P> extends React.FC<P> {
|
22 | getTwoToneColors: typeof getTwoToneColors;
|
23 | setTwoToneColors: typeof setTwoToneColors;
|
24 | }
|
25 | declare const IconBase: IconBaseComponent<IconProps>;
|
26 | export default IconBase;
|