import type { PluginServices } from '../ricos-plugins/editor-plugins.js';
import type { Attachment } from './pm-node-types.js';
type FileUploadCallbacks = {
    onLoadingStart: (attachment: Extract<Attachment, {
        status: 'loading';
    }>) => void;
    onSuccess: (attachmentId: string, attachment: Extract<Attachment, {
        status: 'ok';
    }>) => void;
    onError: (attachmentId: string, attachment: Extract<Attachment, {
        status: 'error';
    }>) => void;
};
export declare const handleFileUpload: ({ services, callbacks, pluginId, }: {
    services: Pick<PluginServices, 'devService' | 'uploadService' | 'wixInstance' | 'editorProps' | 'modals'>;
    callbacks: FileUploadCallbacks;
    pluginId: string;
}) => Promise<void>;
export {};
//# sourceMappingURL=handle-file-upload.d.ts.map