import { TiptapControls, TiptapSuggestionOptions } from '../types';
/**
 * Converts Tiptap editor content to sanitized HTML.
 * This class takes toolbar items and optional suggestion configurations to generate HTML content
 * from a Tiptap editor's JSON content state. The HTML is then sanitized based on a set of allowed tags,
 * attributes, and classes to ensure safety and compliance with expected content structures.
 */
export default class TiptapToHTML {
    suggestions: TiptapSuggestionOptions | undefined;
    toolbarItems: TiptapControls;
    /**
     * Constructs an instance of the TiptapToHTML converter.
     * @param {TiptapControls} toolbarItems - The toolbar items configuration for the Tiptap editor.
     * @param {TiptapSuggestionOptions} [suggestions] - Optional suggestions configuration for the Tiptap editor.
     */
    constructor(toolbarItems: TiptapControls, suggestions?: TiptapSuggestionOptions);
    /**
     * Generates sanitized HTML from a stringified Tiptap editor content state.
     * @param {string} stringifiedContentState - The JSON stringified content state of the Tiptap editor.
     * @returns {string} The sanitized HTML string.
     */
    generateSanitizedHTML(stringifiedContentState: string): string;
    /**
     * Generates HTML from the Tiptap editor's JSON content state.
     * This method utilizes the Tiptap `generateHTML` function along with the editor configuration
     * to convert JSON content state into HTML.
     * @private
     * @param {JSONContent} editorContent - The JSON content state of the Tiptap editor.
     * @returns {string} The generated HTML string.
     */
    private generateHTML;
    /**
     * Defines the configuration for the HTML sanitizer.
     * Specifies allowed tags, attributes, classes, and iframe hostnames to ensure the generated HTML
     * is safe and meets the defined constraints.
     * @private
     * @returns {Object} The sanitizer configuration object.
     */
    private sanitizeConfig;
}
//# sourceMappingURL=index.d.ts.map