/** * The `style` attribute as a string, never through CSSOM. * * `element.style` is a browser luxury: the Node exporters parse with * @xmldom/xmldom (pdf) and linkedom (pptx, html text), whose Elements carry no * `CSSStyleDeclaration` or only part of one. Code that reads or writes a * declaration through it therefore works in the editor and silently does * NOTHING in an export. * * The build format mirrors what a browser's CSSOM serializes (`a: b;` joined by * a space), so markup that used to be written through `element.style` keeps the * same shape. VALUES are written as authored: CSSOM normalizes a colour to * `rgb(…)` and the three DOM implementations disagree about when, so matching * that is chasing a target rather than defining one. */ export declare function parseStyleAttribute(style: string | null | undefined): Record; export declare function buildStyleAttribute(style: Record): string; /** A declaration value without its `!important`, which is a priority, not paint. */ export declare const stripPriority: (value: string) => string; /** * Set one declaration on `el`, or drop it when `value` is null. Declarations the * caller did not name survive, in their original order. */ export declare function setStyleDeclaration(el: Element, prop: string, value: string | null): void;