UNPKG

862 BTypeScriptView Raw
1import { AbstractNode, IconDefinition } from '@ant-design/icons/lib/types';
2export declare function log(message: string): void;
3export declare function isIconDefinition(target: any): target is IconDefinition;
4export declare function normalizeAttrs(attrs?: Attrs): Attrs;
5export interface Attrs {
6 [key: string]: string;
7}
8export declare class MiniMap<V> {
9 readonly size: number;
10 private collection;
11 clear(): void;
12 delete(key: string): boolean;
13 get(key: string): V | undefined;
14 has(key: string): boolean;
15 set(key: string, value: V): this;
16}
17export declare function generate(node: AbstractNode, key: string, rootProps?: {
18 [key: string]: any;
19} | false): any;
20export declare function getSecondaryColor(primaryColor: string): string;
21export declare function withSuffix(name: string, theme: 'fill' | 'outline' | 'twotone'): string;