/*! * Jodit Editor PRO (https://xdsoft.net/jodit/) * See LICENSE.md in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/ */ import type { AjaxOptions } from "jodit/esm/types/index"; declare module 'jodit/esm/config' { interface Config { exportDocs: { ajax?: AjaxOptions; css: string; pdf: { allow: boolean; externalFonts: string[]; /** * Custom client-side converter function. * Receives the HTML string and should return a Blob with the PDF content. * When set, the server request is skipped entirely. * Default: null (uses server-side conversion via Ajax) */ converter: ((html: string) => Promise) | null; options: { defaultFont: 'courier' | 'courier-bold' | 'courier-oblique' | 'courier-boldoblique' | 'helvetica' | 'helvetica-bold' | 'helvetica-oblique' | 'helvetica-boldoblique' | 'times-roman' | 'times-bold' | 'times-italic' | 'times-bolditalic' | 'symbol' | 'zapfdingbats'; /** * Page format. Default is A4 */ format: 'A4' | 'A3' | 'A5' | 'Letter' | 'Legal'; page_orientation: 'landscape' | 'portrait'; }; }; docx: { allow: boolean; /** * Output filename. * Default: 'document.docx' for server-side, change to 'document.doc' for HTML-based client converters. */ filename: string; /** * Custom client-side converter function. * Receives the HTML string and should return a Blob with the DOCX content. * When set, the server request is skipped entirely. * Default: null (uses server-side conversion via Ajax) */ converter: ((html: string) => Promise) | null; }; }; } }