/** * Displays an icon. */ export declare class IconComponent { private iconBaseSRC; /** * The color modifier for the icon path. */ color: string; /** * The icon modifier for the icon path. */ icon: string; /** * The folder modifier for the icon path. */ iconFolder: string; /** * Icon's image file format. */ imgFormat: string; /** * CSS class for the img element. */ imgClass: string; /** * Height of the img element. * * @default 100% */ height: string; /** * Width of the img element. * * @default 100% */ width: string; /** * The path for the icon's image file. * * @default '' */ path: string; /** * Stores data of color modifier for the icon path. * * @default null */ private _color; /** * Stores data of icon modifier for the icon path. * * @default '' */ private _icon; /** * Stores data of secondary path prefix for the icon path. * * @default '/assets/img/' */ private secondaryBase; /** * Stores data of folder modifier for the icon path. * * @default '' */ private _iconFolder; /** * Stores image format for the icon path. * * @default 'svg' */ private _imgFormat; /** * Indicates if an error occurred when loading the icon * using the primary base URL/path for retrieving icons. * * @default false */ private imageError; constructor(iconBaseSRC: string); /** * Builds the icon source URL/path. * Concatenates base URL/path with icon folder, modifier, color modifier and image format. */ updatePath(): void; /** * Runs when image fails to load using the primary base URL/path for retrieving icons. * Sets image error flag and modifies image source path to secondary option. */ onImageError(): void; /** * Validates and formats icon folder name. */ private validateFolderName; }