rss-mind-map
Version:
Rss mind map is a free open source mind map core.
32 lines (31 loc) • 962 B
TypeScript
import { type IconName } from './svgContent';
export type { IconName } from './svgContent';
export interface IconOptions {
width?: number;
height?: number;
color?: string;
className?: string;
strokeWidth?: number;
}
/**
* Create SVG icon using DOM manipulation
* @param name - Icon name from registry
* @param options - Customization options
* @returns SVG string
*/
export declare function createSVGIcon(name: IconName, options?: IconOptions): string;
/**
* Synchronous version - same as createSVGIcon since everything is now synchronous
* @param name - Icon name from registry
* @param options - Customization options
* @returns SVG string
*/
export declare function createSVGIconSync(name: IconName, options?: IconOptions): string;
/**
* Get all available icon names
*/
export declare function getAvailableIcons(): IconName[];
/**
* Check if an icon exists
*/
export declare function hasIcon(name: string): name is IconName;