/*!
 * Jodit Editor (https://xdsoft.net/jodit/)
 * Released under MIT see LICENSE.txt in the project root for license information.
 * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
 */
/**
 * @module plugins/video
 */
import type { IJodit, IUploaderData } from "../../types/index";
declare module 'jodit/config' {
    interface Config {
        video: {
            /**
             * Custom function for parsing video URL to embed code
             * ```javascript
             * Jodit.make('#editor', {
             * 		video: {
             * 			// Defaul behavior
             * 			parseUrlToVideoEmbed: (url, size) => Jodit.modules.Helpers.convertMediaUrlToVideoEmbed(url, size)
             * 		}
             * });
             * ```
             */
            parseUrlToVideoEmbed?: (url: string, { width, height }?: {
                width?: number;
                height?: number;
            }) => string;
            /**
             * Default width for video iframe. Default: 400
             */
            defaultWidth?: number;
            /**
             * Default height for video iframe. Default: 345
             */
            defaultHeight?: number;
            /**
             * Inserts the videos uploaded from the popup's Upload tab, which is shown
             * when `uploader.url` or `uploader.customUploadFunction` is set. By default
             * each one goes in as `<video controls src="…">`.
             * ```javascript
             * Jodit.make('#editor', {
             * 		video: {
             * 			defaultHandlerSuccess(data) {
             * 				data.files.forEach(file => {
             * 					this.s.insertHTML(`<video controls preload="metadata" src="${data.baseurl + file}"></video>`);
             * 				});
             * 			}
             * 		}
             * });
             * ```
             */
            defaultHandlerSuccess?: (this: IJodit, data: IUploaderData) => void;
        };
    }
}
