import { ModuleWithProviders } from '@angular/core'; import { MatIconRegistry } from '@angular/material/icon'; import { DomSanitizer } from '@angular/platform-browser'; import { MtnaCustomIconCongfig } from './custom-icon-config.model'; import * as i0 from "@angular/core"; import * as i1 from "@angular/common/http"; /** * A simplified way to set up custom mat-icons. * Provide a {@link MtnaCustomIconCongfig} in the `forRoot()` method, * and specify what font set and any custom svg icons for a given app. * * Import this module a single time at the root of your application. * Also useful for adding custom icons to a Storybook story. * * @example * ``` * // Within a storybook * export default { * title: 'My special story', * component: MySpecialComponentWithAnIcon, * decorators: [ * moduleMetadata({ * imports: [ * ... * MtnaCustomIconRegistryModule.forRoot(new MtnaCustomIconCongfig()), * ], * }), * ], * }; * ``` * * @example * ``` * // Basic usage * NgModule({ * imports: [ * ... * MtnaCustomIconRegistryModule.forRoot(new MtnaCustomIconCongfig()), * ], * bootstrap: [AppComponent], * }) * export class AppModule { } * ``` * * @example * ``` * // With a custom icon * NgModule({ * imports: [ * ... * MtnaCustomIconRegistryModule.forRoot( * new MtnaCustomIconCongfig( * 'material-icons-outlined', * [new MtnaCustomIcon('mtna', 'assets/icons/mtna/icon.svg')] * ) * ), * ], * bootstrap: [AppComponent], * }) * export class AppModule { } * ``` * * @author Will Davis */ export declare class MtnaCustomIconRegistryModule { constructor(config: MtnaCustomIconCongfig, iconRegistry: MatIconRegistry, parentModule: MtnaCustomIconRegistryModule, sanitizer: DomSanitizer); static forRoot(config: MtnaCustomIconCongfig): ModuleWithProviders; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; }