/**
 * The text of a rich text attribute, for showing in a plain text field.
 *
 * @param html The attribute's value.
 * @return The text with the markup removed.
 */
export declare function getPlainText(html?: string): string;
/**
 * Applies an edit made in a plain text field to a rich text attribute.
 *
 * Only the characters that changed are replaced, so the formatting, line
 * breaks and inline images in the rest of the text survive. Typed text takes
 * the format of the character before it, as it does on the canvas.
 *
 * @param html    The attribute's value before the edit.
 * @param newText The field's text after the edit.
 * @return The attribute's value after the edit.
 */
export declare function applyPlainTextEdit(html: string | undefined, newText: string): string;
//# sourceMappingURL=plain-text-edit.d.ts.map