import { IUploadConfig } from "@wangeditor/editor"; import { AttachmentElement } from "../types"; type InsertFn = (fileName: string, link: string) => void; export type IUploadConfigForAttachment = IUploadConfig & { allowedFileTypes?: string[]; customInsert?: (res: any, file: any, insertFn: InsertFn) => void; customUpload?: (files: File, insertFn: InsertFn) => void; customBrowseAndUpload?: (insertFn: InsertFn) => void; onInsertedAttachment?: (elem: AttachmentElement) => void; }; export declare function genUploadAttachmentMenuConfig(): IUploadConfigForAttachment; export {};