/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net */ import './uploader.less'; import type { BuildDataResult, HandlerError, HandlerSuccess, IDictionary, IUploader, IUploaderOptions, IViewBased } from '../../types'; import { ViewComponent } from '../../core/component/'; declare module '../../config' { interface Config { enableDragAndDropFileToEditor: boolean; uploader: IUploaderOptions; } } export declare class Uploader extends ViewComponent implements IUploader { className(): string; static dataURItoBlob(dataURI: string): Blob; private path; private source; options: IUploaderOptions; get o(): this['options']; buildData(data: FormData | IDictionary | string): BuildDataResult; private ajaxInstances; private send; private sendFiles; setPath(path: string): void; setSource(source: string): void; bind(form: HTMLElement, handlerSuccess?: HandlerSuccess, handlerError?: HandlerError): void; uploadRemoteImage(url: string, handlerSuccess?: HandlerSuccess, handlerError?: HandlerError): void; constructor(editor: IViewBased, options?: IUploaderOptions); destruct(): any; }