/** * Copy a page selection as clean rich text. * * Browsers serialize a copied selection with the page's computed styles inlined * (text colour, font, and the background of the surrounding message), so a * selection pasted into a document or chat keeps the app's dark or tinted * backgrounds. This rebuilds the selected content as semantic HTML only: * structure and formatting (paragraphs, lists, emphasis, code, links, tables) * survive, page styling does not. The plain-text flavour is the browser's own. */ /** * Clean clipboard flavours for the current selection inside `root`, or null * when the browser's default copy should run (no selection, a selection that * leaves `root`, or one inside an editable field). */ export declare function selectionClipboardContent(root: Element): { html: string; text: string; } | null; /** * `copy` handler: replace the browser's styled copy of a selection inside * `root` with clean HTML plus the browser's own plain text. Leaves every other * copy (editable fields, selections outside `root`) untouched. */ export declare function copySelectionWithoutPageStyles(event: Pick, root: Element | null): boolean;