package.dist.rendering-util.icons.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mermaid Show documentation
Show all versions of mermaid Show documentation
Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.
The newest version!
import type { IconifyIcon, IconifyJSON } from '@iconify/types';
import type { IconifyIconCustomisations } from '@iconify/utils';
interface AsyncIconLoader {
name: string;
loader: () => Promise;
}
interface SyncIconLoader {
name: string;
icons: IconifyJSON;
}
export type IconLoader = AsyncIconLoader | SyncIconLoader;
export declare const unknownIcon: IconifyIcon;
export declare const registerIconPacks: (iconLoaders: IconLoader[]) => void;
export declare const isIconAvailable: (iconName: string) => Promise;
export declare const getIconSVG: (iconName: string, customisations?: IconifyIconCustomisations & {
fallbackPrefix?: string;
}) => Promise;
export {};