import { HsonNode } from "../../../../core/types.js"; /** * Build a DOM-ready attribute map for an `HsonNode`. * * This is the “wire format” step: it flattens a node’s internal `$_attrs` plus * selected `$_meta` keys into a plain `{ [name]: string }` dictionary suitable * for `Element.setAttribute(...)` / element construction. * * Rules: * - User attributes (`n.$_attrs`) are copied as string values. * - Special-case: `"style"` * - If `style` is an object (your `StyleObject` shape), it is serialized to * CSS text via `serialize_style(...)`. * - If `style` is already a string, it is passed through unchanged. * - Exact registered metadata is projected through its owned markup spelling. * * Notes / invariants: * - This function does not validate attribute names or escape values; it assumes * earlier stages enforced the “safe” boundary (or you are building trusted DOM). * - Unknown or misplaced metadata rejects instead of leaking or being dropped. * * @param n - Source Hson node whose `$_attrs` and `$_meta` will be projected onto * a DOM attribute dictionary. * @returns A string-valued attribute record representing the node’s wire attrs. */ export declare function build_wire_attrs(n: HsonNode): Record; //# sourceMappingURL=build-wire-attrs.d.ts.map