import * as i0 from "@angular/core";
import { AfterContentChecked, EnvironmentProviders, InjectionToken, ModuleWithProviders, Provider, Renderer2 } from "@angular/core";
import { IconBase, IconDefinition, IconService, RenderMeta, ThemeType } from "@ant-design/icons-angular";
import { Subject } from "rxjs";
import { NzConfigService } from "ng-zorro-antd/core/config";
export interface NzIconfontOption {
  scriptUrl: string;
}
export declare const NZ_ICONS: InjectionToken<IconDefinition[]>;
export declare const NZ_ICON_DEFAULT_TWOTONE_COLOR: InjectionToken<unknown>;
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 readonly nzConfigService: NzConfigService;
  private readonly platform;
  configUpdated$: Subject<void>;
  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<NzIconService, never>;
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
}
export declare const NZ_ICONS_PATCH: InjectionToken<IconDefinition[]>;
export declare class NzIconPatchService {
  private readonly extraIcons;
  private readonly rootIconService;
  patched: boolean;
  doPatch(): void;
  static ɵfac: i0.ɵɵFactoryDeclaration<NzIconPatchService, never>;
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
}
declare namespace icon_directive_d_exports {
  export { NzIconDirective };
}
export declare class NzIconDirective extends IconBase implements AfterContentChecked {
  private readonly ngZone;
  private readonly changeDetectorRef;
  private readonly destroyRef;
  private readonly pendingTasks;
  private readonly isBrowser;
  protected readonly el: HTMLElement;
  protected readonly renderer: Renderer2;
  protected readonly iconService: NzIconService;
  readonly nzType: import("@angular/core").InputSignal<string | undefined>;
  readonly nzTheme: import("@angular/core").InputSignal<ThemeType | undefined>;
  readonly nzTwotoneColor: import("@angular/core").InputSignal<string | undefined>;
  readonly nzSpin: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
  readonly nzRotate: import("@angular/core").InputSignalWithTransform<number, unknown>;
  readonly nzIconfont: import("@angular/core").InputSignal<string | undefined>;
  readonly ariaLabel: import("@angular/core").InputSignal<string | null | undefined>;
  protected readonly hostClass: import("@angular/core").Signal<string[]>;
  protected get selfRenderMeta(): RenderMeta;
  constructor();
  /**
   * If custom content is provided, try to normalize SVG elements.
   */
  ngAfterContentChecked(): void;
  /**
   * Replacement of `changeIcon` for more modifications.
   */
  private changeIcon2;
  private handleRotate;
  private setSVGData;
  static ɵfac: i0.ɵɵFactoryDeclaration<NzIconDirective, never>;
  static ɵdir: i0.ɵɵDirectiveDeclaration<NzIconDirective, "nz-icon,[nz-icon]", ["nzIcon"], {
    "nzType": {
      "alias": "nzType";
      "required": false;
      "isSignal": true;
    };
    "nzTheme": {
      "alias": "nzTheme";
      "required": false;
      "isSignal": true;
    };
    "nzTwotoneColor": {
      "alias": "nzTwotoneColor";
      "required": false;
      "isSignal": true;
    };
    "nzSpin": {
      "alias": "nzSpin";
      "required": false;
      "isSignal": true;
    };
    "nzRotate": {
      "alias": "nzRotate";
      "required": false;
      "isSignal": true;
    };
    "nzIconfont": {
      "alias": "nzIconfont";
      "required": false;
      "isSignal": true;
    };
    "ariaLabel": {
      "alias": "aria-label";
      "required": false;
      "isSignal": true;
    };
  }, {}, never, never, true, never>;
}
export declare class NzIconModule {
  static forRoot(icons: IconDefinition[]): ModuleWithProviders<NzIconModule>;
  static forChild(icons: IconDefinition[]): ModuleWithProviders<NzIconModule>;
  static ɵfac: i0.ɵɵFactoryDeclaration<NzIconModule, never>;
  static ɵmod: i0.ɵɵNgModuleDeclaration<NzIconModule, never, [typeof NzIconDirective], [typeof NzIconDirective]>;
  static ɵinj: i0.ɵɵInjectorDeclaration<NzIconModule>;
}
export declare const NZ_ICONS_USED_BY_ZORRO: IconDefinition[];
/**
 * Provide icon definitions for NzIcon in root
 *
 * @param icons Icon definitions
 */
export declare const provideNzIcons: (icons: IconDefinition[]) => EnvironmentProviders;
/**
 * Provide icon definitions for NzIcon in feature module or standalone component
 *
 * @param icons Icon definitions
 */
export declare const provideNzIconsPatch: (icons: IconDefinition[]) => Provider[];