import { DocumentElement } from '../types'; export declare function parseStyles(element: HTMLElement): Record; export declare function parseAttributes(element: HTMLElement): Record; export declare function colorConversion(color: string): string; export declare function pixelsToTwips(pixels: number): number; export declare function mapBorderStyle(style: string): string; /** * Hoist every direct `type==='attribute'` child of `el` into * `el.metadata[thatName]`, removing them from `el.content`. * - If the wrapper itself contains attribute‑children, flatten * *those* instead (one level deep). * - Otherwise serialize the wrapper itself. */ export declare function extractAttributesToMetadata(el: DocumentElement): DocumentElement; /** * Run the above over an entire document tree. */ export declare function extractAllAttributes(doc: DocumentElement[]): DocumentElement[]; //# sourceMappingURL=html.utils.d.ts.map