@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
28 lines (27 loc) • 1.01 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
*/
import { type Document } from '../utils/htmlparser.js';
declare const AIResponseParser_base: {
new (): import("ckeditor5/src/utils.js").Observable;
prototype: import("ckeditor5/src/utils.js").Observable;
};
/**
* An utility for parsing AI responses.
*
* It can handle markdown and HTML content. The main purpose of this class is to clean-up
* the HTML content for further processing.
*/
export declare class AIResponseParser extends /* #__PURE__ -- @preserve */ AIResponseParser_base {
constructor();
/**
* Converts the given Markdown string to HTML. During conversion HTML is sanitized and normalized.
*/
convertMarkdownToHTML(markdown: string): Document;
/**
* Parses, sanitizes and normalizes given HTML string.
*/
parseAndNormalizeHTML(html: string): Document;
}
export {};