import type { ContentMetadata, TrustedHTMLHandler } from 'roosterjs-editor-types'; /** * @deprecated Use setHtmlWithMetadata instead * Restore inner HTML of a root element from given html string. If the string contains selection path, * remove the selection path and return a range represented by the path * @param root The root element * @param html The HTML to restore * @param trustedHTMLHandler An optional trusted HTML handler to convert HTML string to security string * @returns A selection range if the html contains a valid selection path, otherwise null */ export default function setHtmlWithSelectionPath(rootNode: HTMLElement, html: string, trustedHTMLHandler?: TrustedHTMLHandler): Range | null; /** * Restore inner HTML of a root element from given html string. If the string contains metadata, * remove it from DOM tree and return the metadata * @param root The root element * @param html The HTML to restore * @param trustedHTMLHandler An optional trusted HTML handler to convert HTML string to security string * @returns Content metadata if any, or undefined */ export declare function setHtmlWithMetadata(rootNode: HTMLElement, html: string, trustedHTMLHandler?: TrustedHTMLHandler): ContentMetadata | undefined; /** * Extract content metadata from DOM tree * @param rootNode Root of the DOM tree * @returns If there is a valid content metadata node in the give DOM tree, return this metadata object, otherwise undefined */ export declare function extractContentMetadata(rootNode: HTMLElement): ContentMetadata | undefined;