interface Config { appId: string; container?: string; onCloseModal?: () => Promise | void | boolean; /** * 获取使用权益凭证 */ getUseRightCert?(info: { appId: string; abilityCode: string; workId: string; }): Promise; /** * 获取用户授权标识 */ authorize?(): Promise; } type EditorModuleType = 'panel.template' | 'panel.ajustment' | 'panel.mark' | 'panel.text' | 'panel.border' | 'panel.element' | 'panel.watermark' | 'panel.upload'; export declare function createImageEditor(config: Config): { editImage: (id: string, options?: { disableModules?: EditorModuleType[]; fileTypes?: string[]; }) => Promise; close: () => void; onSave: (fn: (info: { workId: string; files: Blob[]; title: string; type: string; indexes?: number[]; sourceIndexes?: number[]; }) => void) => void; onClose: (fn: () => any) => void; importImage: (file: (string | Blob) | (string | Blob)[], options?: { disableModules?: EditorModuleType[]; fileTypes?: string[]; }) => Promise; on: (eventName: string, fn: (...args: any[]) => any) => void; off: (eventName: string, fn: (...args: any[]) => any) => void; }; export {};