import { LitElement } from 'lit'; import '@umbraco-ui/uui-symbol-file-dropzone/lib'; export interface UUIFileFolder { folderName: string; folders: UUIFileFolder[]; files: File[]; } declare const UUIFileDropzoneElement_base: (new (...args: any[]) => import("@umbraco-ui/uui-base/lib/mixins").UUILabelMixinInterface) & typeof LitElement; /** * @element uui-file-dropzone * @fires {UUIFileDropzoneEvent} change - fires when a file has been selected. * @fires {UUIFileDropzoneEvent} reject - fires when files are rejected due to not matching the accept attribute. * @slot - For the content of the dropzone * @description - Dropzone for file upload. Supports native browsing and drag n drop. */ export declare class UUIFileDropzoneElement extends UUIFileDropzoneElement_base { private _input; private _dropzone; private _acceptedFileExtensions; private _acceptedMimeTypes; private _accept; /** * Comma-separated list of accepted mime types or file extensions (denoted with a `.`). * If this is left empty, it will allow all types. * * @type {string} * @attr * @examples [ * "image/*,application/pdf", * ".gif,.png,.jpg,.jpeg,.pdf", * ] */ set accept(value: string); get accept(): string; disallowFolderUpload: boolean; /** * Allows for multiple files to be selected. * @type {boolean} * @attr * @default false */ multiple: boolean; /** * Opens the native file picker to select a file. * @method browse */ browse(): void; constructor(); /** * Check if folder upload should be processed based on component settings. * @returns true if folder upload is allowed and multiple files are enabled */ private _shouldProcessFolder; private _getAllEntries; private _processRootEntries; /** * Get the filesystem entry (file or directory) from a DataTransferItem. * @remark Supports both WebKit and non-WebKit browsers. */ private _getEntry; private _processEntries; private _readAllEntries; private _mkdir; private _isAccepted; private _getAsFile; private _onDrop; private _onDragOver; private _onDragEnter; private _onDragLeave; private _onFileInputChange; render(): import("lit").TemplateResult<1>; static styles: import("lit").CSSResult[]; } declare global { interface HTMLElementTagNameMap { 'uui-file-dropzone': UUIFileDropzoneElement; } } export {};