import type { IEditor, ModelToDomOption, ModelToTextCallbacks } from 'roosterjs-content-model-types'; /** * Export HTML content. If there are entities, this will cause EntityOperation event with option = 'replaceTemporaryContent' to get a dehydrated entity * @param editor The editor to get content from * @param mode Specify HTML to get HTML. * @param options @optional Options for Model to DOM conversion */ export declare function exportContent(editor: IEditor, mode?: 'HTML', options?: ModelToDomOption): string; /** * Export HTML content. If there are entities, this will cause EntityOperation event with option = 'replaceTemporaryContent' to get a dehydrated entity. * This is a fast version, it retrieve HTML content directly from editor without going through content model conversion. * @param editor The editor to get content from * @param mode Specify HTMLFast to get HTML result. This is the default option */ export declare function exportContent(editor: IEditor, mode?: 'HTMLFast'): string; /** * Export plain text content * @param editor The editor to get content from * @param mode Specify PlainText to get plain text result * @param callbacks @optional Callbacks to customize conversion behavior */ export declare function exportContent(editor: IEditor, mode: 'PlainText', callbacks?: ModelToTextCallbacks): string; /** * Export plain text using editor's textContent property directly * @param editor The editor to get content from * @param mode Specify PlainTextFast to get plain text result using textContent property * @param options @optional Options for Model to DOM conversion */ export declare function exportContent(editor: IEditor, mode: 'PlainTextFast'): string;