import { HsonNode } from "../../../core/types.js"; /** * Parse untrusted HTML into a sanitized `HsonNode` tree. * * Pipeline: * 1. Apply the source-aware attribute pass while duplicate and reserved-name * identity is still observable. * 2. Sanitize the normalized HTML via `sanitize_external` (DOMPurify-based). * 3. If sanitization removes all content (only forbidden tags/attrs), * throw with a clear error message. * 4. Pass the sanitized HTML into `parse_html` to build the Hson tree. * * This function is the safe HTML entry-point: all external/untrusted * HTML should go through this path rather than `parse_html` directly. * * @param raw - Untrusted HTML string to sanitize and parse. * @returns A rooted `HsonNode` tree representing the sanitized markup. * @see sanitize_external * @see parse_html */ export declare function parse_external_html(raw: string): HsonNode; //# sourceMappingURL=parse-external-html.transform.d.ts.map