UNPKG

766 BTypeScriptView Raw
1import { ElementRef, EventEmitter, OnInit, OnDestroy } from '@angular/core';
2import { UploadOutput, UploadInput, UploaderOptions } from './interfaces';
3import { NgUploaderService } from './ngx-uploader.class';
4import { Subscription } from 'rxjs';
5export declare class NgFileDropDirective implements OnInit, OnDestroy {
6 elementRef: ElementRef;
7 options: UploaderOptions;
8 uploadInput: EventEmitter<UploadInput>;
9 uploadOutput: EventEmitter<UploadOutput>;
10 upload: NgUploaderService;
11 el: HTMLInputElement;
12 _sub: Subscription[];
13 constructor(elementRef: ElementRef);
14 ngOnInit(): void;
15 ngOnDestroy(): void;
16 stopEvent: (e: Event) => void;
17 onDrop(e: any): void;
18 onDragOver(e: Event): void;
19 onDragLeave(e: Event): void;
20}