UNPKG

@defikitdotnet/education-module-ai

Version:
25 lines (24 loc) 755 B
import React from "react"; interface H5PEditorProps { contentType: string; apiUrl: string; existingContentId?: string; } declare const H5PEditor: React.ForwardRefExoticComponent<H5PEditorProps & React.RefAttributes<unknown>>; declare global { interface Window { H5PEditor: { Editor: new (config: { container: HTMLElement; apiUrl: string; contentId: string; contentType: string; }) => { init: () => Promise<void>; getContent: (successCallback: (content: any) => void, errorCallback: (error: any) => void) => void; destroy?: () => void; }; }; } } export default H5PEditor;