/**
 * safe-highlight - XSS-safe rendering of server-provided highlight HTML.
 *
 * The search API returns highlightedQuery with a small set of wrapping tags
 * (mark, b, strong, em, i) around matched fragments.
 * Rather than using dangerouslySetInnerHTML we parse the string, allow only
 * the known safe tags, and return a React.ReactNode tree.
 *
 * Allowed tags: mark, b, strong, em, i
 * Everything else is stripped to its text content.
 * Attributes on allowed tags are dropped entirely.
 */
import React from "react";
/**
 * Parse a highlighted HTML string and return a React.ReactNode.
 *
 * Strategy:
 * - In a browser environment: use DOMParser to parse the fragment as HTML,
 *   then walk the resulting DOM, keeping only allowed tags.
 * - SSR / environments without DOMParser: use a regex-based fallback that
 *   strips or passes through the same allowed tags.
 *
 * @param html  Server-provided highlighted string, e.g. "run<mark>ning</mark>"
 * @returns     A React.ReactNode safe to render without raw innerHTML
 */
export declare function safeHighlight(html: string): React.ReactNode;
//# sourceMappingURL=safe-highlight.d.ts.map