import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core'; import * as i0 from "@angular/core"; /** * A directive that facilitates `file inputs` and `file drop regions`. * * @export */ export declare class UiDragAndDropFileDirective implements OnChanges, AfterViewInit, OnDestroy { private _elementRef; private _renderer; /** * The accepted `file-type`. * */ fileType?: string; /** * The element reference that triggers file `browsing`. * */ fileBrowseRef?: Element; /** * The element reference that serve as a `clear` trigger for the selected files. * */ fileClearRef?: Element; /** * Configures if the `file area` accepts multiple files. * */ multiple: boolean; /** * Configures the `disabled` state of the `file area`. * */ disabled: boolean; /** * An event that emits when the file selection state `changes`. * */ fileChange: EventEmitter; /** * An event that emits when the file selection is `cleared`. * */ fileClear: EventEmitter; protected _isDragging: boolean; private _disposalCallbacks; private _fileInput; /** * @ignore */ constructor(_elementRef: ElementRef, _renderer: Renderer2); /** * @ignore */ ngOnChanges(changes: SimpleChanges): void; /** * @ignore */ ngAfterViewInit(): void; /** * @ignore */ ngOnDestroy(): void; /** * Reacts to `drop` events. * * @param ev The `DragEvent` data associated to the `drop`. */ protected _onDrop(ev: DragEvent): void; /** * Marks the `state` as `dragging` when a `dragover` event occurs. * * @param ev The `DragEvent` data associated to the `dragover`. */ protected _onDragOver(ev: DragEvent): void; /** * Clears the `dragging` `state` when a `dragleave` event occurs. * * @param ev The `DragEvent` data associated to the `dragover`. */ protected _onDragLeave(ev: DragEvent): void; /** * Clears the `dragging` `state` when a `dragleave` event occurs. * * @param ev The `DragEvent` data associated to the `dragend`. */ protected _onDragEnd(): void; /** * Prevents weird flickering `cross-browser`. * * @param ev The `DragEvent` data associated to the `dragenter`. */ protected _onDragEnter(ev: DragEvent): void; private _emitFiles; private _preventEnterOnChildren; private _preventAll; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }