import * as i0 from '@angular/core'; import { InjectionToken, OnChanges, AfterContentChecked, Renderer2, SimpleChanges, ModuleWithProviders, EnvironmentProviders, Provider } from '@angular/core'; import { IconService, IconDefinition, IconDirective, ThemeType } from '@ant-design/icons-angular'; import { Subject } from 'rxjs'; import { NzConfigService } from 'ng-zorro-antd/core/config'; interface NzIconfontOption { scriptUrl: string; } declare const NZ_ICONS: InjectionToken; declare const NZ_ICON_DEFAULT_TWOTONE_COLOR: InjectionToken; declare const DEFAULT_TWOTONE_COLOR = "#1890ff"; /** * It should be a global singleton, otherwise registered icons could not be found. */ declare class NzIconService extends IconService { protected nzConfigService: NzConfigService; private platform; configUpdated$: Subject; protected get _disableDynamicLoading(): boolean; private iconfontCache; normalizeSvgElement(svg: SVGElement): void; fetchFromIconfont(opt: NzIconfontOption): void; createIconfontIcon(type: string): SVGElement; constructor(); private onConfigChange; private configDefaultTheme; private configDefaultTwotoneColor; private getConfig; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const NZ_ICONS_PATCH: InjectionToken; declare class NzIconPatchService { private rootIconService; patched: boolean; private extraIcons; constructor(rootIconService: NzIconService); doPatch(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class NzIconDirective extends IconDirective implements OnChanges, AfterContentChecked { readonly iconService: NzIconService; private readonly ngZone; private readonly changeDetectorRef; readonly renderer: Renderer2; private destroyRef; private pendingTasks; private isBrowser; cacheClassName: string | null; set nzSpin(value: boolean); nzRotate: number; set nzType(value: string); set nzTheme(value: ThemeType); set nzTwotoneColor(value: string); set nzIconfont(value: string); hostClass?: string; private readonly el; private iconfont?; private spin; constructor(iconService: NzIconService); ngOnChanges(changes: SimpleChanges): void; /** * If custom content is provided, try to normalize SVG elements. */ ngAfterContentChecked(): void; /** * Replacement of `changeIcon` for more modifications. */ private changeIcon2; private handleSpin; private handleRotate; private setClassName; private setSVGData; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; static ngAcceptInputType_nzSpin: unknown; static ngAcceptInputType_nzRotate: unknown; } /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ declare class NzIconModule { static forRoot(icons: IconDefinition[]): ModuleWithProviders; static forChild(icons: IconDefinition[]): ModuleWithProviders; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ declare const NZ_ICONS_USED_BY_ZORRO: IconDefinition[]; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ /** * Provide icon definitions for NzIcon in root * * @param icons Icon definitions */ declare const provideNzIcons: (icons: IconDefinition[]) => EnvironmentProviders; /** * Provide icon definitions for NzIcon in feature module or standalone component * * @param icons Icon definitions */ declare const provideNzIconsPatch: (icons: IconDefinition[]) => Provider[]; export { DEFAULT_TWOTONE_COLOR, NZ_ICONS, NZ_ICONS_PATCH, NZ_ICONS_USED_BY_ZORRO, NZ_ICON_DEFAULT_TWOTONE_COLOR, NzIconDirective, NzIconModule, NzIconPatchService, NzIconService, provideNzIcons, provideNzIconsPatch }; export type { NzIconfontOption };