1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
524 B
TypeScript

import type Quill from '../core/quill.js';
import Module from '../core/module.js';
import type { Range } from '../core/selection.js';
interface UploaderOptions {
mimetypes: string[];
handler: (this: {
quill: Quill;
}, range: Range, files: File[]) => void;
}
declare class Uploader extends Module<UploaderOptions> {
static DEFAULTS: UploaderOptions;
constructor(quill: Quill, options: Partial<UploaderOptions>);
upload(range: Range, files: FileList | File[]): void;
}
export default Uploader;