UNPKG

1.02 kBTypeScriptView Raw
1/**
2 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4 */
5/**
6 * @module paste-from-office/filters/image
7 */
8import { type ViewDocumentFragment } from 'ckeditor5/src/engine.js';
9/**
10 * Replaces source attribute of all `<img>` elements representing regular
11 * images (not the Word shapes) with inlined base64 image representation extracted from RTF or Blob data.
12 *
13 * @param documentFragment Document fragment on which transform images.
14 * @param rtfData The RTF data from which images representation will be used.
15 */
16export declare function replaceImagesSourceWithBase64(documentFragment: ViewDocumentFragment, rtfData: string): void;
17/**
18 * Converts given HEX string to base64 representation.
19 *
20 * @internal
21 * @param hexString The HEX string to be converted.
22 * @returns Base64 representation of a given HEX string.
23 */
24export declare function _convertHexToBase64(hexString: string): string;