@ckeditor/ckeditor5-engine
Version:
The editing engine of CKEditor 5 – the best browser-based rich text editor.
46 lines (45 loc) • 1.46 kB
TypeScript
/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
/**
* Note: This package is used only internally for debugging purposes and should not be used
* in other environments. It uses a few special methods not existing in the default
* building process. That is also why there are no tests for this file.
*
* @module engine/dev-utils/utils
*/
/**
* Helper function, converts a map to the 'key1="value1" key2="value1"' format.
*
* @param map Map to convert.
* @returns Converted map.
* @internal
*/
export declare function convertMapToTags(map: Iterable<[string, unknown]>): string;
/**
* Helper function, converts a map to the `{"key1":"value1","key2":"value2"}` format.
*
* @param map Map to convert.
* @returns Converted map.
* @internal
*/
export declare function convertMapToStringifiedObject(map: Iterable<[string, unknown]>): string;
/**
* Helper function that stores the `document` state for a given `version`.
*
* @internal
*/
export declare function dumpTrees(document: any, version: any): void;
/**
* Helper function that initializes document dumping.
*
* @internal
*/
export declare function initDocumentDumping(document: any): void;
/**
* Helper function that logs document for the given version.
*
* @internal
*/
export declare function logDocument(document: any, version: any): void;