import { AfterViewInit, OnDestroy } from '@angular/core'; import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser'; import { NgBoxService } from './ngbox.service'; /** * 参考https://github.com/mixalistzikas/ngbox */ export declare class NgBoxDirective implements AfterViewInit, OnDestroy { ngBox: NgBoxService; sanitizer: DomSanitizer; id: number; data: {}; src: any; href: any; title: string; width: string; height: string; group: string; cache: boolean; image: boolean; constructor(ngBox: NgBoxService, sanitizer: DomSanitizer); ngOnDestroy(): void; ngAfterViewInit(): void; onClick($event: any): void; getData(url: string): SafeResourceUrl | boolean; }