import { IImage } from '../../types'; /** * 自定义添加图片资源 */ export declare const IMAGES_CACHE: Map; export declare function registerImage(id: string, image: IImage): void; export declare function registerImages(images: { id: string; image: IImage; }[]): void; export declare function getImage(id: string): IImage | undefined; export declare function hasImage(id: string): boolean; export declare function unregisterImage(id: string): boolean; /** * 自定义添加第三方字体 */ export declare const FONT_FACE_CACHE: Map; export declare function registerFontFace(fontFamily: string, fontPath: string): void; export declare function unregisterFontFace(fontFamily: string): boolean; /** * 自定义添加 iconfont */ export declare const ICON_FONT_CACHE: Map; export declare function registerIconFont(name: string, fontUnicode: string): void; export declare function registerIconFonts(iconFonts: { name: string; fontUnicode: string; }[]): void; export declare function unregisterIconFont(name: any): boolean;