import { Extension } from '@tiptap/core';
import { type ImageUploaderStorage } from './imageUploader.js';
export interface ImageUploaderPluginOptions {
    acceptMimes: string[];
    upload: (file: File | string, id: string) => Promise<string>;
    id: () => string;
    ignoreDomains: string[];
}
declare module '@tiptap/core' {
    interface Commands<ReturnType> {
        imageUploadExtension: {
            /** Insert an image placeholder at the current selection and upload the file. */
            uploadImage: (options: {
                file: File | string;
            }) => ReturnType;
            /**
             * @deprecated Use `editor.storage.imageUploadExtension.getFileCache(id)` instead.
             * The command form will be removed in the next major.
             */
            getFileCache: (key: string) => ReturnType;
        };
    }
    interface Storage {
        imageUploadExtension: ImageUploaderStorage;
    }
}
export declare const ImageUpload: Extension<ImageUploaderPluginOptions, ImageUploaderStorage>;
