import { HttpBackend } from '@angular/common/http'; import { InjectionToken, RendererFactory2 } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; import { IconDefinition, IconService } from '@ant-design/icons-angular'; import { NzConfigService } from '../config/config.service'; import { NzSafeAny } from '../types/any'; import { Subject } from 'rxjs'; export interface NzIconfontOption { scriptUrl: string; } export declare const NZ_ICONS: InjectionToken; export declare const NZ_ICON_DEFAULT_TWOTONE_COLOR: InjectionToken; export declare const DEFAULT_TWOTONE_COLOR = "#1890ff"; /** * It should be a global singleton, otherwise registered icons could not be found. */ export declare class NzIconService extends IconService { protected nzConfigService: NzConfigService; configUpdated$: Subject; private iconfontCache; normalizeSvgElement(svg: SVGElement): void; fetchFromIconfont(opt: NzIconfontOption): void; createIconfontIcon(type: string): SVGElement; constructor(rendererFactory: RendererFactory2, sanitizer: DomSanitizer, nzConfigService: NzConfigService, handler: HttpBackend, _document: NzSafeAny, icons?: IconDefinition[]); private onConfigChange; private configDefaultTheme; private configDefaultTwotoneColor; private getConfig; } export declare const NZ_ICONS_PATCH: InjectionToken; export declare class NzIconPatchService { private extraIcons; private rootIconService; patched: boolean; constructor(extraIcons: IconDefinition[], rootIconService: NzIconService); doPatch(): void; }