import * as EditorJS from '@editorjs/editorjs'; import "./index.css"; interface YoutubeData extends EditorJS.BlockToolData { id: string; url: string; embedUrl: string; } export default class EditorJSYoutubeTool implements EditorJS.BaseTool { playerEl: HTMLElement; inputEl: HTMLInputElement; readonly: boolean; isTouched: boolean; data: YoutubeData; cssClasses: { block: string; input: string; error: string; video: string; main: string; }; constructor({ data, api, readonly }: { data: YoutubeData; api: EditorJS.API; readonly: boolean; }); static get isInline(): boolean; static get isReadOnlySupported(): boolean; static get toolbox(): { icon: string; title?: string; }; getIdFromUrl(url: string): string; getEmbedUrl(videoId: string): string; private renderPreview; render(): HTMLElement; save(block: HTMLDivElement): YoutubeData; } export {};